File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ sub test_tablespace
26
26
CREATE TABLESPACE source_ts LOCATION '';
27
27
CREATE TABLESPACE target_ts LOCATION '';
28
28
CREATE DATABASE template_db IS_TEMPLATE = true;
29
+ SELECT pg_create_physical_replication_slot('slot', true);
29
30
] );
30
31
my $backup_name = ' my_backup' ;
31
32
$node_primary -> backup($backup_name );
@@ -40,10 +41,11 @@ sub test_tablespace
40
41
# Make sure connection is made
41
42
$node_primary -> poll_query_until(' postgres' ,
42
43
' SELECT count(*) = 1 FROM pg_stat_replication' );
44
+ $node_primary -> safe_psql(' postgres' , " SELECT pg_drop_replication_slot('slot')" );
43
45
44
46
$node_standby -> safe_psql(' postgres' , ' CHECKPOINT' );
45
47
46
- # Do immediate shutdown just after a sequence of CREAT DATABASE / DROP
48
+ # Do immediate shutdown just after a sequence of CREATE DATABASE / DROP
47
49
# DATABASE / DROP TABLESPACE. This causes CREATE DATABASE WAL records
48
50
# to be applied to already-removed directories.
49
51
my $query = q[
You can’t perform that action at this time.
0 commit comments