]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Make postgres_fdw request remote time zone 'GMT' not 'UTC'.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 21 Apr 2024 17:46:20 +0000 (13:46 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 21 Apr 2024 17:46:20 +0000 (13:46 -0400)
commit6c85e3359be03592c7bf4b66a348153cae4701a4
treec9ae4a28755560816474129ca756c72b79e18847
parent722f17049729600e3a885b1c1d975a0b0fa2e1e4
Make postgres_fdw request remote time zone 'GMT' not 'UTC'.

This should have the same results for all practical purposes.
The advantage of selecting 'GMT' is that it's guaranteed to work
even when the remote system's timezone database is missing
entries, because pg_tzset() hard-wires handling of that,
at least in 9.2 and later.

(It seems like it would be a good idea to similarly hard-wire
correct handling of 'UTC', but that'll be a little more invasive
than I want to consider back-patching.  Leave that for another
day when we're not in feature freeze.)

Per trouble report from Adnan Dautovic.  Back-patch to all
supported branches.

Discussion: https://postgr.es/m/465248.1712211585@sss.pgh.pa.us
contrib/postgres_fdw/connection.c