pgsql: Make postgres_fdw request remote time zone 'GMT' not 'UTC'.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Make postgres_fdw request remote time zone 'GMT' not 'UTC'.
Date: 2024-04-21 17:46:36
Message-ID: E1rybGu-003Cm7-BL@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/0e56b2b9447b3441fa0408680ec52c1cd0b717cd

Modified Files
--------------
contrib/postgres_fdw/connection.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tomas Vondra 2024-04-21 19:31:24 pgsql: createdb: compare strategy case-insensitive
Previous Message Tomas Vondra 2024-04-21 08:01:54 Re: pgsql: createdb: Correct parameter name in SGML docs