]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Fix BF failure introduced in commit 2bf6c9ff71.
authorAmit Kapila <akapila@postgresql.org>
Fri, 1 May 2026 09:05:26 +0000 (14:35 +0530)
committerAmit Kapila <akapila@postgresql.org>
Fri, 1 May 2026 09:05:26 +0000 (14:35 +0530)
The sequence subscription test switches regress_seq_sub to connect to the
publisher as regress_seq_repl (a non-superuser) when checking behavior
with insufficient sequence privileges but forgot to set up pg_hba.conf to
allow connections from it. The special setup is only needed on Windows
machines that don't use UNIX sockets.

As per buildfarm.

Reported-by: Ajin Cherian <itsajin@gmail.com>
Author: Ayush Tiwari <ayushtiwari.slg01@gmail.com>
Reviewed-by: vignesh C <vignesh21@gmail.com>
Discussion: https://postgr.es/m/CAFPTHDad911HUMkHgD1KZk+WOvTopiBcYf4C_8Fqj1-sZk3xgw@mail.gmail.com

src/test/subscription/t/036_sequences.pl

index e6dd3b069b8cbe1b4af1e65511ae56159a819911..387b057268df36d290e8712d15743c4c99755c14 100644 (file)
@@ -10,7 +10,11 @@ use Test::More;
 
 # Initialize publisher node
 my $node_publisher = PostgreSQL::Test::Cluster->new('publisher');
-$node_publisher->init(allows_streaming => 'logical');
+# Make sure pg_hba.conf is set up to allow connections from regress_seq_repl.
+# This is only needed on Windows machines that don't use UNIX sockets.
+$node_publisher->init(
+       allows_streaming => 'logical',
+       auth_extra => [ '--create-role' => 'regress_seq_repl' ]);
 $node_publisher->start;
 
 # Initialize subscriber node