Avoid using timezone Asia/Manila in regression tests.
authorTom Lane <[email protected]>
Mon, 20 Jan 2025 20:47:53 +0000 (15:47 -0500)
committerTom Lane <[email protected]>
Mon, 20 Jan 2025 20:47:53 +0000 (15:47 -0500)
commitdee1e86d0e6d20c6326073db1736ae2088aac191
treee3be8aac4d9326d442b498bcdd9e9d6c68529f9d
parent0f0431e919f4a2889fbdbede5efc67443c51b93c
Avoid using timezone Asia/Manila in regression tests.

The freshly-released 2025a version of tzdata has a refined estimate
for the longitude of Manila, changing their value for LMT in
pre-standardized-timezone days.  This changes the output of one of
our test cases.  Since we need to be able to run with system tzdata
files that may or may not contain this update, we'd better stop
making that specific test.

I switched it to use Asia/Singapore, which has a roughly similar UTC
offset.  That LMT value hasn't changed in tzdb since 2003, so we can
hope that it's well established.

I also noticed that this set of make_timestamptz tests only exercises
zones east of Greenwich, which seems rather sad, and was not the
original intent AFAICS.  (We've already changed these tests once
to stabilize their results across tzdata updates, cf 66b737cd9;
it looks like I failed to consider the UTC-offset-sign aspect then.)
To improve that, add a test with Pacific/Honolulu.  That LMT offset
is also quite old in tzdb, so we'll cross our fingers that it doesn't
get improved.

Reported-by: Christoph Berg <[email protected]>
Discussion: https://postgr.es/m/[email protected]
Backpatch-through: 13
src/include/datatype/timestamp.h
src/test/regress/expected/timestamptz.out
src/test/regress/sql/timestamptz.sql