On Sun, Nov 01, 2026 at 03:00:00PM +0200, Alexander Lakhin wrote:
> That is, the wakeup can hit autovacuum worker or logical replication
> launcher, not the intended client backend. This test failure can be easily
> reproduced with:
> @@ -753,2 +753,3 @@ InitPostgres(const char *in_dbname, Oid dboid,
>          pgstat_bestart_initial();
> +if (AmRegularBackendProcess()) pg_usleep(1000000);
>          INJECTION_POINT("init-pre-auth", NULL);
> 
> and
> echo "autovacuum_naptime = 1s" >/tmp/temp.config
> TEMP_CONFIG=/tmp/temp.config PROVE_TESTS="t/007*" make -s check -C 
> src/test/authentication
> 
> Reproduced starting from e2080261c.

Thanks for the report.  I am planning to tackle this one with the
following tweak to the test's conf:
autovacuum = off
max_logical_replication_workers = 0

Does that work for you?
--
Michael
diff --git a/src/test/authentication/t/007_pre_auth.pl 
b/src/test/authentication/t/007_pre_auth.pl
index 04063f4721d9..9c2e3341d768 100644
--- a/src/test/authentication/t/007_pre_auth.pl
+++ b/src/test/authentication/t/007_pre_auth.pl
@@ -18,9 +18,14 @@ if ($ENV{enable_injection_points} ne 'yes')
 
 my $node = PostgreSQL::Test::Cluster->new('primary');
 $node->init;
+
+# Disable autovacuum and logical replication workers; these could reach
+# the injection point wait.
 $node->append_conf(
        'postgresql.conf', q[
 log_connections = 'receipt,authentication'
+autovacuum = off
+max_logical_replication_workers = 0
 ]);
 
 $node->start;

Attachment: signature.asc
Description: PGP signature

Reply via email to