postgres.git / summary / log / commit / refs

commit    d4e8c37cca39362b4281ce254f92ff2fe5a4b4b0
Author:   Tom Lane <tgl@sss.pgh.pa.us>
Date:     Sat Oct 18 22:36:21 2025 +0000
First released in: 19.0, 16.11, 17.7, 18.1

    Allow role created by new test to log in on Windows.
    
    We must tell init about each role name we plan to connect as,
    else SSPI auth fails.  Similar to previous patches such as
    14793f471, 973542866.
    
    Oversight in 208927e65, per buildfarm member drongo.
    (Although that was back-patched to v13, the test script
    only exists in v16 and up.)


contrib/pg_prewarm/t/001_basic.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/pg_prewarm/t/001_basic.pl b/contrib/pg_prewarm/t/001_basic.pl index 024c683fb6d..939dd215e56 100644 --- a/contrib/pg_prewarm/t/001_basic.pl +++ b/contrib/pg_prewarm/t/001_basic.pl @@ -11,7 +11,7 @@ use Test::More; my $node = PostgreSQL::Test::Cluster->new('main'); -$node->init; +$node->init('auth_extra' => [ '--create-role', 'test_user' ]); $node->append_conf( 'postgresql.conf', qq{shared_preload_libraries = 'pg_prewarm' [parent: c945b06d5f03]