aboutsummaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2021-09-30 16:23:10 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2021-09-30 16:23:26 -0400
commit649e561f65c579630e5c31ee65308eefdd21ec93 (patch)
treec0d70c0726ebf0d21fea00caeaff20e2e9c8c88a /contrib/postgres_fdw
parent1d97d3d0867faf967a3ab977b6a0b675b6a451da (diff)
downloadpostgresql-649e561f65c579630e5c31ee65308eefdd21ec93.tar.gz
postgresql-649e561f65c579630e5c31ee65308eefdd21ec93.zip
Remove gratuitous environment dependency in 002_types.pl test.
Computing related timestamps by subtracting "N days" is sensitive to the prevailing timezone, since we interpret that as "same local time on the N'th prior day". Even though the intervals in question are only two to four days, through remarkable bad luck they managed to cross the end of Ramadan in 2014, causing the test's output to change if timezone is set to Africa/Casablanca. (Maybe in other Muslim areas as well; I didn't check.) There's absolutely no reason for this test to exercise interval subtraction, so just get rid of that and use plain timestamptz constants representing the intended values. Per report from Andres Freund. Back-patch to v10 where this test script came in. Discussion: https://postgr.es/m/20210930183641.7lh4jhvpipvromca@alap3.anarazel.de
Diffstat (limited to 'contrib/postgres_fdw')
0 files changed, 0 insertions, 0 deletions