Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uAFPW-00Cku1-Ft for pgsql-bugs@arkaria.postgresql.org; Wed, 30 Apr 2025 21:56:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1uAFPT-00GsAe-VY for pgsql-bugs@arkaria.postgresql.org; Wed, 30 Apr 2025 21:56:09 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uAFPT-00GsAW-NZ for pgsql-bugs@lists.postgresql.org; Wed, 30 Apr 2025 21:56:08 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uAFPS-000QgD-2J for pgsql-bugs@lists.postgresql.org; Wed, 30 Apr 2025 21:56:08 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 53ULu4W71406805; Wed, 30 Apr 2025 17:56:04 -0400 From: Tom Lane To: Manav Kumar cc: pgsql-bugs@lists.postgresql.org Subject: Re: Doubt in reset date style In-reply-to: References: Comments: In-reply-to Manav Kumar message dated "Thu, 01 May 2025 02:47:27 +0530" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1406803.1746050164.1@sss.pgh.pa.us> Date: Wed, 30 Apr 2025 17:56:04 -0400 Message-ID: <1406804.1746050164@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Manav Kumar 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