pgsql: Fix new auto_explain test case for Windows.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix new auto_explain test case for Windows.
Date: 2022-07-27 22:58:45
Message-ID: E1oGpzI-001Y7s-EF@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix new auto_explain test case for Windows.

In commit 7c34555f8, I overlooked the need to configure SSPI
on Windows to allow login as the non-superuser role.
Fix that by adding auth_extra/--create-role incantation
(which, oddly enough, doesn't actually create the role).
Per buildfarm.

While here, upgrade the mechanism for temporarily setting
$ENV{PGUSER}, as per recommendation from ilmari.

Discussion: https://postgr.es/m/87edy7j1zz.fsf@wibble.ilmari.org

Branch
------
REL_15_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/1d01d198536f24995f2d5271f55c73be644438fc

Modified Files
--------------
contrib/auto_explain/t/001_auto_explain.pl | 39 +++++++++++++++---------------
1 file changed, 20 insertions(+), 19 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Thomas Munro 2022-07-28 02:30:36 pgsql: Fix get_dirent_type() for symlinks on MinGW/MSYS.
Previous Message Robert Haas 2022-07-27 20:22:58 pgsql: Bump catversion for commit d8cd0c6c95c0120168df93aae095df4e0682a