doc: add float as an alias for double precision.
authorTom Lane <[email protected]>
Thu, 7 Aug 2025 22:04:45 +0000 (18:04 -0400)
committerTom Lane <[email protected]>
Thu, 7 Aug 2025 22:05:20 +0000 (18:05 -0400)
Although the "Floating-Point Types" section says that "float" data
type is taken to mean "double precision", this information was not
reflected in the data type table that lists all data type aliases.

Reported-by: [email protected]
Author: Euler Taveira <[email protected]>
Reviewed-by: Tom Lane <[email protected]>
Discussion: https://postgr.es/m/175456294638.800.12038559679827947313@wrigleys.postgresql.org
Backpatch-through: 13

doc/src/sgml/datatype.sgml

index 6d069650ffc40df40fe63acb3863b7d5149faf0f..e7cde733a32333654c02e5cd70838ec26aaec969 100644 (file)
 
       <row>
        <entry><type>double precision</type></entry>
-       <entry><type>float8</type></entry>
+       <entry><type>float</type>, <type>float8</type></entry>
        <entry>double precision floating-point number (8 bytes)</entry>
       </row>