pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Doc: adjust examples of EXTRACT() output to match current realit
Date: Mon, 10 Apr 2023 17:09:27 +0000
Message-ID: <E1plv1B-002Oge-SS@gemulon.postgresql.org> (raw)

Doc: adjust examples of EXTRACT() output to match current reality.

EXTRACT(EPOCH), EXTRACT(SECOND), and some related cases print more
trailing zeroes than they used to.  This behavior change happened
with commit a2da77cdb (Change return type of EXTRACT to numeric),
and it was intentional according to the commit log:

    - Return values when extracting fields with possibly fractional
      values, such as second and epoch, now have the full scale that the
      value has internally (so, for example, '1.000000' instead of just
      '1').

It's been like that for two releases now, so while I suggested
changing this back, it's probably better to adjust the documentation
examples.

Per bug #17866 from Евгений Жужнев.  Back-patch to v14 where the
change came in.

Discussion: https://postgr.es/m/17866-18eb70095b1594e2@postgresql.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/fbbd7edca867ea8f8bd7540492e527fdb16d954b

Modified Files
--------------
doc/src/sgml/func.sgml | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)



view thread (3+ messages)  latest in thread

Message-ID: <E1plv1B-002Oge-SS@gemulon.postgresql.org>
Permalink:  ../E1plv1B-002Oge-SS@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1plv1B-002Oge-SS@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Doc: adjust examples of EXTRACT() output to match current realit
  In-Reply-To: <E1plv1B-002Oge-SS@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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