forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit2c8ef93
committed
Future-proof regression tests against possibly-missing posixrules file.
The IANA time zone folk have deprecated use of a "posixrules" file inthe tz database. While for now it's our choice whether to keepsupplying one in our own builds, installations built with--with-system-tzdata will soon be needing to cope with that file notbeing present, at least on some platforms.This causes a problem for the horology test, which expected thenonstandard POSIX zone spec "CST7CDT" to apply pre-2007 US daylightsavings rules. That does happen if the posixrules file supplies suchinformation, 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 timezone, 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 whythe zone names EST5EDT, CST6CDT, MST7MDT, PST8PDT aren't subject tosimilar failures when "posixrules" is missing.Back-patch to all supported branches, since the hazard is the samefor all.Discussion:https://postgr.es/m/1665379.1592581287@sss.pgh.pa.us1 parent816cbb5 commit2c8ef93
File tree
4 files changed
+29
-11
lines changed- doc/src/sgml
- src/test/regress
- expected
- sql
4 files changed
+29
-11
lines changedLines changed: 12 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
757 | 757 |
| |
758 | 758 |
| |
759 | 759 |
| |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
760 | 772 |
| |
761 | 773 |
| |
762 | 774 |
| |
|
Lines changed: 13 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9131 | 9131 |
| |
9132 | 9132 |
| |
9133 | 9133 |
| |
9134 |
| - | |
| 9134 | + | |
| 9135 | + | |
9135 | 9136 |
| |
9136 | 9137 |
| |
9137 | 9138 |
| |
9138 |
| - | |
9139 |
| - | |
9140 |
| - | |
9141 |
| - | |
9142 |
| - | |
9143 |
| - | |
9144 |
| - | |
9145 |
| - | |
| 9139 | + | |
| 9140 | + | |
| 9141 | + | |
| 9142 | + | |
| 9143 | + | |
| 9144 | + | |
| 9145 | + | |
| 9146 | + | |
| 9147 | + | |
| 9148 | + | |
| 9149 | + | |
9146 | 9150 |
| |
9147 | 9151 |
| |
9148 | 9152 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
652 | 652 |
| |
653 | 653 |
| |
654 | 654 |
| |
655 |
| - | |
| 655 | + | |
| 656 | + | |
656 | 657 |
| |
657 | 658 |
| |
658 | 659 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
122 | 122 |
| |
123 | 123 |
| |
124 | 124 |
| |
125 |
| - | |
| 125 | + | |
| 126 | + | |
126 | 127 |
| |
127 | 128 |
| |
128 | 129 |
| |
|
0 commit comments
Comments
(0)