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