Re: Doubt in reset date style

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Manav Kumar <mkumar(at)yugabyte(dot)com>
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: Doubt in reset date style
Date: 2025-04-30 21:56:04
Message-ID: 1406804.1746050164@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Manav Kumar <mkumar(at)yugabyte(dot)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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message David Rowley 2025-04-30 23:16:36 Re: Postgres 17.4 is much slower than Postgres 15.12 using RECURSIVE
Previous Message marcos sicat 2025-04-30 21:43:43 Re: Postgres 17.4 is much slower than Postgres 15.12 using RECURSIVE