Fix new auto_explain test case for Windows.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 27 Jul 2022 22:58:20 +0000 (18:58 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 27 Jul 2022 22:58:20 +0000 (18:58 -0400)
commit1d01d198536f24995f2d5271f55c73be644438fc
tree212198184ad26101698a646c9cf728b0425298e9
parenta0c632c1dea74de042110e204bd2dc634e87b7ea
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
contrib/auto_explain/t/001_auto_explain.pl