postgres.git / summary / log / commit / refs
commit 5c0095e7274c3f4ef863ea795feb7d61d50795d2
Author: Fujii Masao <fujii@postgresql.org>
Date: Thu Oct 22 00:24:28 2026 +0000
First released in: 16.16, 17.12, 18.7, 19.0
Fix slot names in the standby slot removal check
The DROP DATABASE test in 035_standby_logical_decoding.pl created
slots with the prefix "drop_db_" but checked for their removal using
"drop_db". Sined names never existed, the checks passed
even if the actual slots remained.
Fix this by using the correct prefix when checking for slot removal.
Backpatch to v16, where this testce the check was introduced.
Author: Fujii Masao <masao.fujii@gmail.com>
Reviewed-by: Hayato Kuroda <kuroda.hayato@fujitsu.com>
Discussion: https://postgr.es/m/CAHGQGwEnuLZnFRF5CzK47n_hXT-iCXnzirxG2v_V-=QNMLkpEA@mail.gmail.com
Backpatch-through: 16
src/test/recovery/t/035_standby_logical_decoding.pl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/test/recovery/t/035_standby_logical_decoding.pl b/src/test/recovery/t/035_standby_logical_decoding.pl
index 094f35aa74d..115cae97eac 100644
--- a/src/test/recovery/t/035_standby_logical_decoding.pl
+++ b/src/test/recovery/t/035_standby_logical_decoding.pl
@@ -873,7 +873,7 @@ is( $node_standby->safe_psql(
'f',
'database dropped on standby');
-check_slots_dropped('drop_db', $handle);
+check_slots_dropped('drop_db_', $handle);
is($node_standby->slot('otherslot')->{'slot_type'},
'logical', 'otherslot on standby not dropped');
[parent: c1b3845ade34]