pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Doc: adjust examples of EXTRACT() output to match current realit
3+ messages / 1 participants
[nested] [flat]

* pgsql: Doc: adjust examples of EXTRACT() output to match current realit
@ 2023-04-10 17:09  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 3+ messages in thread

From: Tom Lane @ 2023-04-10 17:09 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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(-)



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

* pgsql: Doc: adjust examples of EXTRACT() output to match current realit
@ 2023-04-10 17:09  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 3+ messages in thread

From: Tom Lane @ 2023-04-10 17:09 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/07a9f4f73386319f4a6b02e0c5aecf98136adcdb

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



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

* pgsql: Doc: adjust examples of EXTRACT() output to match current realit
@ 2023-04-10 17:09  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 3+ messages in thread

From: Tom Lane @ 2023-04-10 17:09 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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
------
REL_15_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/707691ea620eaa7d8c7fc1e5177a54e944f39b59

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



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


end of thread, other threads:[~2023-04-10 17:09 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2023-04-10 17:09 pgsql: Doc: adjust examples of EXTRACT() output to match current realit Tom Lane <tgl@sss.pgh.pa.us>
2023-04-10 17:09 pgsql: Doc: adjust examples of EXTRACT() output to match current realit Tom Lane <tgl@sss.pgh.pa.us>
2023-04-10 17:09 pgsql: Doc: adjust examples of EXTRACT() output to match current realit Tom Lane <tgl@sss.pgh.pa.us>

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