pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Manav Kumar <mkumar@yugabyte.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: Doubt in reset date style
Date: Wed, 30 Apr 2025 17:56:04 -0400
Message-ID: <1406804.1746050164@sss.pgh.pa.us> (raw)
In-Reply-To: <CAPhCW+-_tbRbL1bHrRQQPpajC+CZ=z5shb_LqTppgh8tq9HKyQ@mail.gmail.com>
References: <CAPhCW+-_tbRbL1bHrRQQPpajC+CZ=z5shb_LqTppgh8tq9HKyQ@mail.gmail.com>

Manav Kumar <mkumar@yugabyte.com> writes:
> I have a doubt in the expected output file:
> src/test/regress/expected/horology.out

> After doing the reset DateStyle.
> Why output is still in 'Postgres, MDY' form rather than 'ISO, MDY'.

Because pg_regress.c does this:

	setenv("PGDATESTYLE", "Postgres, MDY", 1);

which determines the environment for all the psql runs it
launches.

			regards, tom lane





view thread (3+ messages)

Message-ID: <1406804.1746050164@sss.pgh.pa.us>
Permalink:  ../1406804.1746050164@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1406804.1746050164@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, mkumar@yugabyte.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: Doubt in reset date style
  In-Reply-To: <1406804.1746050164@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox