pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Future-proof regression tests against possibly-missing posixrule
7+ messages / 1 participants
[nested] [flat]

* pgsql: Future-proof regression tests against possibly-missing posixrule
@ 2020-06-19 17:55 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2020-06-19 17:55 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Future-proof regression tests against possibly-missing posixrules file.

The IANA time zone folk have deprecated use of a "posixrules" file in
the tz database.  While for now it's our choice whether to keep
supplying one in our own builds, installations built with
--with-system-tzdata will soon be needing to cope with that file not
being present, at least on some platforms.

This causes a problem for the horology test, which expected the
nonstandard POSIX zone spec "CST7CDT" to apply pre-2007 US daylight
savings rules.  That does happen if the posixrules file supplies such
information, but otherwise the test produces undesired results.
To fix, add an explicit transition date rule that matches 2005 practice.
(We could alternatively have switched the test to use some real time
zone, but it seems useful to have coverage of this type of zone spec.)

While at it, update a documentation example that also relied on
"CST7CDT"; use a real-world zone name instead.  Also, document why
the zone names EST5EDT, CST6CDT, MST7MDT, PST8PDT aren't subject to
similar failures when "posixrules" is missing.

Back-patch to all supported branches, since the hazard is the same
for all.

Discussion: https://postgr.es/m/1665379.1592581287@sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2c8ef9363db199aed9e8f17edba866b1215803c6

Modified Files
--------------
doc/src/sgml/datetime.sgml             | 12 ++++++++++++
doc/src/sgml/func.sgml                 | 22 +++++++++++++---------
src/test/regress/expected/horology.out |  3 ++-
src/test/regress/sql/horology.sql      |  3 ++-
4 files changed, 29 insertions(+), 11 deletions(-)



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

* pgsql: Future-proof regression tests against possibly-missing posixrule
@ 2020-06-19 17:55 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2020-06-19 17:55 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Future-proof regression tests against possibly-missing posixrules file.

The IANA time zone folk have deprecated use of a "posixrules" file in
the tz database.  While for now it's our choice whether to keep
supplying one in our own builds, installations built with
--with-system-tzdata will soon be needing to cope with that file not
being present, at least on some platforms.

This causes a problem for the horology test, which expected the
nonstandard POSIX zone spec "CST7CDT" to apply pre-2007 US daylight
savings rules.  That does happen if the posixrules file supplies such
information, but otherwise the test produces undesired results.
To fix, add an explicit transition date rule that matches 2005 practice.
(We could alternatively have switched the test to use some real time
zone, but it seems useful to have coverage of this type of zone spec.)

While at it, update a documentation example that also relied on
"CST7CDT"; use a real-world zone name instead.  Also, document why
the zone names EST5EDT, CST6CDT, MST7MDT, PST8PDT aren't subject to
similar failures when "posixrules" is missing.

Back-patch to all supported branches, since the hazard is the same
for all.

Discussion: https://postgr.es/m/1665379.1592581287@sss.pgh.pa.us

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/577dcf890cdb2621cf21ded1a2b6c96c40441f3d

Modified Files
--------------
doc/src/sgml/datetime.sgml             | 12 ++++++++++++
doc/src/sgml/func.sgml                 | 22 +++++++++++++---------
src/test/regress/expected/horology.out |  3 ++-
src/test/regress/sql/horology.sql      |  3 ++-
4 files changed, 29 insertions(+), 11 deletions(-)



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

* pgsql: Future-proof regression tests against possibly-missing posixrule
@ 2020-06-19 17:55 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2020-06-19 17:55 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Future-proof regression tests against possibly-missing posixrules file.

The IANA time zone folk have deprecated use of a "posixrules" file in
the tz database.  While for now it's our choice whether to keep
supplying one in our own builds, installations built with
--with-system-tzdata will soon be needing to cope with that file not
being present, at least on some platforms.

This causes a problem for the horology test, which expected the
nonstandard POSIX zone spec "CST7CDT" to apply pre-2007 US daylight
savings rules.  That does happen if the posixrules file supplies such
information, but otherwise the test produces undesired results.
To fix, add an explicit transition date rule that matches 2005 practice.
(We could alternatively have switched the test to use some real time
zone, but it seems useful to have coverage of this type of zone spec.)

While at it, update a documentation example that also relied on
"CST7CDT"; use a real-world zone name instead.  Also, document why
the zone names EST5EDT, CST6CDT, MST7MDT, PST8PDT aren't subject to
similar failures when "posixrules" is missing.

Back-patch to all supported branches, since the hazard is the same
for all.

Discussion: https://postgr.es/m/1665379.1592581287@sss.pgh.pa.us

Branch
------
REL_12_STABLE

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

Modified Files
--------------
doc/src/sgml/datetime.sgml             | 12 ++++++++++++
doc/src/sgml/func.sgml                 | 22 +++++++++++++---------
src/test/regress/expected/horology.out |  3 ++-
src/test/regress/sql/horology.sql      |  3 ++-
4 files changed, 29 insertions(+), 11 deletions(-)



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

* pgsql: Future-proof regression tests against possibly-missing posixrule
@ 2020-06-19 17:55 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2020-06-19 17:55 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Future-proof regression tests against possibly-missing posixrules file.

The IANA time zone folk have deprecated use of a "posixrules" file in
the tz database.  While for now it's our choice whether to keep
supplying one in our own builds, installations built with
--with-system-tzdata will soon be needing to cope with that file not
being present, at least on some platforms.

This causes a problem for the horology test, which expected the
nonstandard POSIX zone spec "CST7CDT" to apply pre-2007 US daylight
savings rules.  That does happen if the posixrules file supplies such
information, but otherwise the test produces undesired results.
To fix, add an explicit transition date rule that matches 2005 practice.
(We could alternatively have switched the test to use some real time
zone, but it seems useful to have coverage of this type of zone spec.)

While at it, update a documentation example that also relied on
"CST7CDT"; use a real-world zone name instead.  Also, document why
the zone names EST5EDT, CST6CDT, MST7MDT, PST8PDT aren't subject to
similar failures when "posixrules" is missing.

Back-patch to all supported branches, since the hazard is the same
for all.

Discussion: https://postgr.es/m/1665379.1592581287@sss.pgh.pa.us

Branch
------
REL_11_STABLE

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

Modified Files
--------------
doc/src/sgml/datetime.sgml             | 12 ++++++++++++
doc/src/sgml/func.sgml                 | 22 +++++++++++++---------
src/test/regress/expected/horology.out |  3 ++-
src/test/regress/sql/horology.sql      |  3 ++-
4 files changed, 29 insertions(+), 11 deletions(-)



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

* pgsql: Future-proof regression tests against possibly-missing posixrule
@ 2020-06-19 17:55 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2020-06-19 17:55 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Future-proof regression tests against possibly-missing posixrules file.

The IANA time zone folk have deprecated use of a "posixrules" file in
the tz database.  While for now it's our choice whether to keep
supplying one in our own builds, installations built with
--with-system-tzdata will soon be needing to cope with that file not
being present, at least on some platforms.

This causes a problem for the horology test, which expected the
nonstandard POSIX zone spec "CST7CDT" to apply pre-2007 US daylight
savings rules.  That does happen if the posixrules file supplies such
information, but otherwise the test produces undesired results.
To fix, add an explicit transition date rule that matches 2005 practice.
(We could alternatively have switched the test to use some real time
zone, but it seems useful to have coverage of this type of zone spec.)

While at it, update a documentation example that also relied on
"CST7CDT"; use a real-world zone name instead.  Also, document why
the zone names EST5EDT, CST6CDT, MST7MDT, PST8PDT aren't subject to
similar failures when "posixrules" is missing.

Back-patch to all supported branches, since the hazard is the same
for all.

Discussion: https://postgr.es/m/1665379.1592581287@sss.pgh.pa.us

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/91e27a3e80b643228e5dfdf0ad4f36b795cde976

Modified Files
--------------
doc/src/sgml/datetime.sgml             | 12 ++++++++++++
doc/src/sgml/func.sgml                 | 22 +++++++++++++---------
src/test/regress/expected/horology.out |  3 ++-
src/test/regress/sql/horology.sql      |  3 ++-
4 files changed, 29 insertions(+), 11 deletions(-)



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

* pgsql: Future-proof regression tests against possibly-missing posixrule
@ 2020-06-19 17:55 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2020-06-19 17:55 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Future-proof regression tests against possibly-missing posixrules file.

The IANA time zone folk have deprecated use of a "posixrules" file in
the tz database.  While for now it's our choice whether to keep
supplying one in our own builds, installations built with
--with-system-tzdata will soon be needing to cope with that file not
being present, at least on some platforms.

This causes a problem for the horology test, which expected the
nonstandard POSIX zone spec "CST7CDT" to apply pre-2007 US daylight
savings rules.  That does happen if the posixrules file supplies such
information, but otherwise the test produces undesired results.
To fix, add an explicit transition date rule that matches 2005 practice.
(We could alternatively have switched the test to use some real time
zone, but it seems useful to have coverage of this type of zone spec.)

While at it, update a documentation example that also relied on
"CST7CDT"; use a real-world zone name instead.  Also, document why
the zone names EST5EDT, CST6CDT, MST7MDT, PST8PDT aren't subject to
similar failures when "posixrules" is missing.

Back-patch to all supported branches, since the hazard is the same
for all.

Discussion: https://postgr.es/m/1665379.1592581287@sss.pgh.pa.us

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/9496908d465efc6116eff78dd46fda27603515d1

Modified Files
--------------
doc/src/sgml/datetime.sgml             | 12 ++++++++++++
doc/src/sgml/func.sgml                 | 22 +++++++++++++---------
src/test/regress/expected/horology.out |  3 ++-
src/test/regress/sql/horology.sql      |  3 ++-
4 files changed, 29 insertions(+), 11 deletions(-)



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

* pgsql: Future-proof regression tests against possibly-missing posixrule
@ 2020-06-19 17:55 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2020-06-19 17:55 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Future-proof regression tests against possibly-missing posixrules file.

The IANA time zone folk have deprecated use of a "posixrules" file in
the tz database.  While for now it's our choice whether to keep
supplying one in our own builds, installations built with
--with-system-tzdata will soon be needing to cope with that file not
being present, at least on some platforms.

This causes a problem for the horology test, which expected the
nonstandard POSIX zone spec "CST7CDT" to apply pre-2007 US daylight
savings rules.  That does happen if the posixrules file supplies such
information, but otherwise the test produces undesired results.
To fix, add an explicit transition date rule that matches 2005 practice.
(We could alternatively have switched the test to use some real time
zone, but it seems useful to have coverage of this type of zone spec.)

While at it, update a documentation example that also relied on
"CST7CDT"; use a real-world zone name instead.  Also, document why
the zone names EST5EDT, CST6CDT, MST7MDT, PST8PDT aren't subject to
similar failures when "posixrules" is missing.

Back-patch to all supported branches, since the hazard is the same
for all.

Discussion: https://postgr.es/m/1665379.1592581287@sss.pgh.pa.us

Branch
------
REL9_5_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/34ef5863c77bb070a6faf136a06728961d6e2a72

Modified Files
--------------
doc/src/sgml/datetime.sgml             | 12 ++++++++++++
doc/src/sgml/func.sgml                 | 22 +++++++++++++---------
src/test/regress/expected/horology.out |  3 ++-
src/test/regress/sql/horology.sql      |  3 ++-
4 files changed, 29 insertions(+), 11 deletions(-)



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


end of thread, other threads:[~2020-06-19 17:55 UTC | newest]

Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-06-19 17:55 pgsql: Future-proof regression tests against possibly-missing posixrule Tom Lane <tgl@sss.pgh.pa.us>
2020-06-19 17:55 pgsql: Future-proof regression tests against possibly-missing posixrule Tom Lane <tgl@sss.pgh.pa.us>
2020-06-19 17:55 pgsql: Future-proof regression tests against possibly-missing posixrule Tom Lane <tgl@sss.pgh.pa.us>
2020-06-19 17:55 pgsql: Future-proof regression tests against possibly-missing posixrule Tom Lane <tgl@sss.pgh.pa.us>
2020-06-19 17:55 pgsql: Future-proof regression tests against possibly-missing posixrule Tom Lane <tgl@sss.pgh.pa.us>
2020-06-19 17:55 pgsql: Future-proof regression tests against possibly-missing posixrule Tom Lane <tgl@sss.pgh.pa.us>
2020-06-19 17:55 pgsql: Future-proof regression tests against possibly-missing posixrule 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