1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-27 12:41:57 +03:00

Fix test_decoding test case's check that slot has been dropped.

pg_stat_replication shows connected replication clients. The ddl test case
never has any replication clients connected, so querying pg_stat_replication
is pointless. To check that a slot has been dropped correctly, query
pg_replication_slots instead.

Andres Freund
This commit is contained in:
Heikki Linnakangas
2014-05-16 11:23:17 +03:00
parent 03e2b1017c
commit afd0fcbc5d
2 changed files with 7 additions and 6 deletions

View File

@ -331,7 +331,8 @@ SELECT data FROM pg_logical_slot_get_changes('regression_slot', NULL, NULL, 'inc
-- done, free logical replication slot
SELECT data FROM pg_logical_slot_get_changes('regression_slot', NULL, NULL, 'include-xids', '0');
SELECT pg_drop_replication_slot('regression_slot');
/* check that we aren't visible anymore now */
SELECT * FROM pg_stat_replication;
/* check that the slot is gone */
SELECT * FROM pg_replication_slots;