pgsql/src backend/parser/gram.y backend/utils/ ... - Mailing list pgsql-committers

From thomas@postgresql.org
Subject pgsql/src backend/parser/gram.y backend/utils/ ...
Date
Msg-id 200110200102.f9K12MX27648@postgresql.org
Whole thread Raw
List pgsql-committers
CVSROOT:    /cvsroot
Module name:    pgsql
Changes by:    thomas@postgresql.org    01/10/19 21:02:22

Modified files:
    src/backend/parser: gram.y
    src/backend/utils/adt: datetime.c nabstime.c timestamp.c
    src/test/regress/expected: horology.out timestamptz.out

Log message:
    Fix transposed arguments for typmod for one INTERVAL production.
    Mask both typmod subfields for INTERVAL to avoid setting the high bit,
    per dire warning from Tom Lane.
    Clear tmask for DTK_ISO_TIME case to avoid time zone troubles.
    Symptom reported by Tom Lane.
    Clean up checking for valid time zone info in output routine.
    This should now work for both SQL99 and Unix-style time zones.
    Put in explicit check for INTERVAL() typmod rounding to avoid accumulating
    cruft in the lower bits. Not sure that this helps, but we'll need to do
    something. The symptom is visible with a query like
    select interval(2) '10000 days 01:02:03.040506';
    Regression tests are patched to repair the Tom Lane symptom, and all pass.


pgsql-committers by date:

Previous
From: tgl@postgresql.org
Date:
Subject: pgsql/src/pl/plperl plperl.c
Next
From: momjian@postgresql.org
Date:
Subject: pgsql/ /HISTORY oc/src/sgml/sql.sgml oc/src/sg ...