]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
ssl: Skip passphrase reload tests in EXEC_BACKEND builds
authorDaniel Gustafsson <dgustafsson@postgresql.org>
Wed, 18 Mar 2026 21:59:57 +0000 (22:59 +0100)
committerDaniel Gustafsson <dgustafsson@postgresql.org>
Wed, 18 Mar 2026 21:59:57 +0000 (22:59 +0100)
SSL password command reloading must be enabled on Windows and in
EXEC_BACKEND builds due to them always reloading the context. The
new tests in commit 4f433025 skipped under Windows but missed the
EXEC_BACKEND check.  Reported by buildfarm member culicidae.

Author: Daniel Gustafsson <daniel@yesql.se>
Discussion: https://postgr.es/m/CAOYmi+kXmCCgBWffzmSjaNhME5rD=gjyc_OP1FeWQTw2MmSNjg@mail.gmail.com

src/test/ssl/t/004_sni.pl

index 4e06475b125e62956ee84e2ba23c4a2c86b49d1d..ae4b1a4c803c533c2877c9d5c88f5fec67413729 100644 (file)
@@ -47,6 +47,9 @@ $ENV{PGHOST} = $node->host;
 $ENV{PGPORT} = $node->port;
 $node->start;
 
+my $exec_backend = $node->safe_psql('postgres', 'SHOW debug_exec_backend');
+chomp($exec_backend);
+
 $ssl_server->configure_test_server_for_ssl($node, $SERVERHOSTADDR,
        $SERVERHOSTCIDR, 'trust');
 
@@ -320,9 +323,10 @@ unlike(
 
 SKIP:
 {
-       # Passphrase reloads must be enabled on Windows to succeed even without a
-       # restart
-       skip "Passphrase command reload required on Windows", 1 if ($windows_os);
+       # Passphrase reloads must be enabled on Windows (and EXEC_BACKEND) to
+       # succeed even without a restart
+       skip "Passphrase command reload required on Windows and EXEC_BACKEND", 1
+         if ($windows_os || $exec_backend =~ /on/);
 
        $node->connect_ok(
                "$connstr sslrootcert=ssl/root+server_ca.crt sslmode=require host=localhost",