agora inbox for pgsql-docs@postgresql.org  
help / color / mirror / Atom feed
add alias FLOAT for double precision
3+ messages / 3 participants
[nested] [flat]

* add alias FLOAT for double precision
@ 2025-08-07 10:35 PG Doc comments form <noreply@postgresql.org>
  2025-08-07 13:57 ` Re: add alias FLOAT for double precision Euler Taveira <euler@eulerto.com>
  0 siblings, 1 reply; 3+ messages in thread

From: PG Doc comments form @ 2025-08-07 10:35 UTC (permalink / raw)
  To: pgsql-docs@lists.postgresql.org; +Cc: alexander.kjall@hafslund.no

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/17/datatype.html
Description:

In table 8.1 (
https://www.postgresql.org/docs/current/datatype.html#DATATYPE-TABLE ) the
FLOAT alias isn't listed, I think it would make sense to include beside
FLOAT8.


^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: add alias FLOAT for double precision
  2025-08-07 10:35 add alias FLOAT for double precision PG Doc comments form <noreply@postgresql.org>
@ 2025-08-07 13:57 ` Euler Taveira <euler@eulerto.com>
  2025-08-07 22:06   ` Re: add alias FLOAT for double precision Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 3+ messages in thread

From: Euler Taveira @ 2025-08-07 13:57 UTC (permalink / raw)
  To: alexander.kjall@hafslund.no; pgsql-docs@lists.postgresql.org

On Thu, Aug 7, 2025, at 7:35 AM, PG Doc comments form wrote:
> In table 8.1 (
> https://www.postgresql.org/docs/current/datatype.html#DATATYPE-TABLE ) the
> FLOAT alias isn't listed, I think it would make sense to include beside
> FLOAT8.

Makes sense.


-- 
Euler Taveira
EDB   https://www.enterprisedb.com/

Attachments:

  [text/x-patch] v1-0001-doc-Add-float-as-an-alias-to-double-precision.patch (968B, ../../a651595d-c8ad-433e-9371-314c3abec723@app.fastmail.com/2-v1-0001-doc-Add-float-as-an-alias-to-double-precision.patch)
  download | inline diff:
From dab483c89424075eef0f1b939334c02dbc0227a8 Mon Sep 17 00:00:00 2001
From: Euler Taveira <euler@eulerto.com>
Date: Thu, 7 Aug 2025 10:48:41 -0300
Subject: [PATCH v1] doc: Add float as an alias to double precision

Although "Floating-Point Types" section says that "float" data type is
taken to mean "double precision", this information is not reflected into
the data type table that lists all data type aliases.
---
 doc/src/sgml/datatype.sgml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/doc/src/sgml/datatype.sgml b/doc/src/sgml/datatype.sgml
index 0994e089311..7458f216e50 100644
--- a/doc/src/sgml/datatype.sgml
+++ b/doc/src/sgml/datatype.sgml
@@ -117,7 +117,7 @@
 
       <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>
 
-- 
2.39.5



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: add alias FLOAT for double precision
  2025-08-07 10:35 add alias FLOAT for double precision PG Doc comments form <noreply@postgresql.org>
  2025-08-07 13:57 ` Re: add alias FLOAT for double precision Euler Taveira <euler@eulerto.com>
@ 2025-08-07 22:06   ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 3+ messages in thread

From: Tom Lane @ 2025-08-07 22:06 UTC (permalink / raw)
  To: Euler Taveira <euler@eulerto.com>; +Cc: alexander.kjall@hafslund.no; pgsql-docs@lists.postgresql.org

"Euler Taveira" <euler@eulerto.com> writes:
> On Thu, Aug 7, 2025, at 7:35 AM, PG Doc comments form wrote:
>> In table 8.1 (
>> https://www.postgresql.org/docs/current/datatype.html#DATATYPE-TABLE ) the
>> FLOAT alias isn't listed, I think it would make sense to include beside
>> FLOAT8.

> Makes sense.

Agreed, pushed.

			regards, tom lane





^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2025-08-07 22:06 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2025-08-07 10:35 add alias FLOAT for double precision PG Doc comments form <noreply@postgresql.org>
2025-08-07 13:57 ` Euler Taveira <euler@eulerto.com>
2025-08-07 22:06   ` Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox