1
0
mirror of https://github.com/postgres/postgres.git synced 2026-10-23 13:29:09 +03:00

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
This commit is contained in:
Fujii Masao
2026-10-22 09:24:28 +09:00
parent d7d45526e1
commit 1b0888f69c

View File

@@ -924,7 +924,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');