postgres.git / summary / log / commit / refs
commit a02de147ab92dc3c7a4abc3648fcbfd10be94490
Author: Michael Paquier <michael@paquier.xyz>
Date: Tue Nov 03 23:38:45 2026 +0000
First released in: 18.7, 19.0
Improve stability of authentication test 007_pre_auth
The injection point wait used by the test could be reached by autovacuum
workers or the logical replication launcher, leading to sporadic
failures.
The configuration of the test is tweaked so as these kinds of processes
are not spawned anymore, which should be enough to silence the problems.
Reported-by: Alexander Lakhin <exclusion@gmail.com>
Discussion: https://postgr.es/m/c984ed89-cac1-47a9-91fa-4d3287722203@gmail.com
Backpatch-through: 18
src/test/authentication/t/007_pre_auth.pl | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/test/authentication/t/007_pre_auth.pl b/src/test/authentication/t/007_pre_auth.pl
index 7b3765e6d25..036c5bc3e53 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;
[parent: 862a20118cfa]