pgsql: Fix timezone dependence in test_misc/012_ddlutils.pl

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix timezone dependence in test_misc/012_ddlutils.pl
Date: 2026-04-29 16:02:03
Message-ID: E1wI7MQ-003Ldn-2V@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix timezone dependence in test_misc/012_ddlutils.pl

The tests introduced in c529ee38b9e are timezone sensitive.

Pin the cluster's timezone to UTC at init time so timestamptz output
is deterministic regardless of the host's local timezone.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/df1bac400fb4877ba9f4bda2a29adaf8b40b4bd3

Modified Files
--------------
src/test/modules/test_misc/t/012_ddlutils.pl | 3 +++
1 file changed, 3 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Masahiko Sawada 2026-04-29 16:10:50 pgsql: test_tidstore: Stabilize regression tests by sorting offsets.
Previous Message Andrew Dunstan 2026-04-29 15:34:31 pgsql: Convert ddlutils regression tests to TAP tests.