Fix new auto_explain test case for Windows.
authorTom Lane <[email protected]>
Wed, 27 Jul 2022 22:58:20 +0000 (18:58 -0400)
committerTom Lane <[email protected]>
Wed, 27 Jul 2022 22:58:35 +0000 (18:58 -0400)
commit5253519b27d3393c07eb04470f04462c67ad94a9
treeabbc74e8b09ab769d8989eb6b889d6d7fba6107e
parent5f858dd3bebd1f3845aef2bff7f4345bfb7b74b3
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/[email protected]
contrib/auto_explain/t/001_auto_explain.pl