@@ -29,7 +29,8 @@ CREATE SUBSCRIPTION regress_testsub CONNECTION 'dbname=regress_doesnotexist' PUB
2929ERROR: publication name "foo" used more than once
3030-- ok
3131CREATE SUBSCRIPTION regress_testsub CONNECTION 'dbname=regress_doesnotexist' PUBLICATION testpub WITH (connect = false);
32- WARNING: tables were not subscribed, you will have to run ALTER SUBSCRIPTION ... REFRESH PUBLICATION to subscribe the tables
32+ WARNING: subscription was created, but is not connected
33+ HINT: To initiate replication, you must manually create the replication slot, enable the subscription, and refresh the subscription.
3334COMMENT ON SUBSCRIPTION regress_testsub IS 'test subscription';
3435SELECT obj_description(s.oid, 'pg_subscription') FROM pg_subscription s;
3536 obj_description
@@ -98,7 +99,8 @@ CREATE SUBSCRIPTION regress_testsub2 CONNECTION 'dbname=regress_doesnotexist' PU
9899ERROR: subscription with slot_name = NONE must also set enabled = false
99100-- ok - with slot_name = NONE
100101CREATE SUBSCRIPTION regress_testsub3 CONNECTION 'dbname=regress_doesnotexist' PUBLICATION testpub WITH (slot_name = NONE, connect = false);
101- WARNING: tables were not subscribed, you will have to run ALTER SUBSCRIPTION ... REFRESH PUBLICATION to subscribe the tables
102+ WARNING: subscription was created, but is not connected
103+ HINT: To initiate replication, you must manually create the replication slot, enable the subscription, and refresh the subscription.
102104-- fail
103105ALTER SUBSCRIPTION regress_testsub3 ENABLE;
104106ERROR: cannot enable subscription that does not have a slot name
@@ -109,7 +111,8 @@ CREATE SUBSCRIPTION regress_testsub4 CONNECTION 'dbname=regress_doesnotexist' PU
109111ERROR: unrecognized origin value: "foo"
110112-- now it works
111113CREATE SUBSCRIPTION regress_testsub4 CONNECTION 'dbname=regress_doesnotexist' PUBLICATION testpub WITH (slot_name = NONE, connect = false, origin = none);
112- WARNING: tables were not subscribed, you will have to run ALTER SUBSCRIPTION ... REFRESH PUBLICATION to subscribe the tables
114+ WARNING: subscription was created, but is not connected
115+ HINT: To initiate replication, you must manually create the replication slot, enable the subscription, and refresh the subscription.
113116\dRs+ regress_testsub4
114117 List of subscriptions
115118 Name | Owner | Enabled | Publication | Binary | Streaming | Two-phase commit | Disable on error | Origin | Synchronous commit | Conninfo | Skip LSN
@@ -233,7 +236,8 @@ CREATE SUBSCRIPTION regress_testsub CONNECTION 'dbname=regress_doesnotexist' PUB
233236ERROR: binary requires a Boolean value
234237-- now it works
235238CREATE SUBSCRIPTION regress_testsub CONNECTION 'dbname=regress_doesnotexist' PUBLICATION testpub WITH (connect = false, binary = true);
236- WARNING: tables were not subscribed, you will have to run ALTER SUBSCRIPTION ... REFRESH PUBLICATION to subscribe the tables
239+ WARNING: subscription was created, but is not connected
240+ HINT: To initiate replication, you must manually create the replication slot, enable the subscription, and refresh the subscription.
237241\dRs+
238242 List of subscriptions
239243 Name | Owner | Enabled | Publication | Binary | Streaming | Two-phase commit | Disable on error | Origin | Synchronous commit | Conninfo | Skip LSN
@@ -256,7 +260,8 @@ CREATE SUBSCRIPTION regress_testsub CONNECTION 'dbname=regress_doesnotexist' PUB
256260ERROR: streaming requires a Boolean value
257261-- now it works
258262CREATE SUBSCRIPTION regress_testsub CONNECTION 'dbname=regress_doesnotexist' PUBLICATION testpub WITH (connect = false, streaming = true);
259- WARNING: tables were not subscribed, you will have to run ALTER SUBSCRIPTION ... REFRESH PUBLICATION to subscribe the tables
263+ WARNING: subscription was created, but is not connected
264+ HINT: To initiate replication, you must manually create the replication slot, enable the subscription, and refresh the subscription.
260265\dRs+
261266 List of subscriptions
262267 Name | Owner | Enabled | Publication | Binary | Streaming | Two-phase commit | Disable on error | Origin | Synchronous commit | Conninfo | Skip LSN
@@ -312,7 +317,8 @@ ALTER SUBSCRIPTION regress_testsub DROP PUBLICATION testpub1, testpub2 WITH (ref
312317DROP SUBSCRIPTION regress_testsub;
313318CREATE SUBSCRIPTION regress_testsub CONNECTION 'dbname=regress_doesnotexist' PUBLICATION mypub
314319 WITH (connect = false, create_slot = false, copy_data = false);
315- WARNING: tables were not subscribed, you will have to run ALTER SUBSCRIPTION ... REFRESH PUBLICATION to subscribe the tables
320+ WARNING: subscription was created, but is not connected
321+ HINT: To initiate replication, you must manually create the replication slot, enable the subscription, and refresh the subscription.
316322ALTER SUBSCRIPTION regress_testsub ENABLE;
317323-- fail - ALTER SUBSCRIPTION with refresh is not allowed in a transaction
318324-- block or function
@@ -338,7 +344,8 @@ CREATE SUBSCRIPTION regress_testsub CONNECTION 'dbname=regress_doesnotexist' PUB
338344ERROR: two_phase requires a Boolean value
339345-- now it works
340346CREATE SUBSCRIPTION regress_testsub CONNECTION 'dbname=regress_doesnotexist' PUBLICATION testpub WITH (connect = false, two_phase = true);
341- WARNING: tables were not subscribed, you will have to run ALTER SUBSCRIPTION ... REFRESH PUBLICATION to subscribe the tables
347+ WARNING: subscription was created, but is not connected
348+ HINT: To initiate replication, you must manually create the replication slot, enable the subscription, and refresh the subscription.
342349\dRs+
343350 List of subscriptions
344351 Name | Owner | Enabled | Publication | Binary | Streaming | Two-phase commit | Disable on error | Origin | Synchronous commit | Conninfo | Skip LSN
@@ -362,7 +369,8 @@ ALTER SUBSCRIPTION regress_testsub SET (slot_name = NONE);
362369DROP SUBSCRIPTION regress_testsub;
363370-- two_phase and streaming are compatible.
364371CREATE SUBSCRIPTION regress_testsub CONNECTION 'dbname=regress_doesnotexist' PUBLICATION testpub WITH (connect = false, streaming = true, two_phase = true);
365- WARNING: tables were not subscribed, you will have to run ALTER SUBSCRIPTION ... REFRESH PUBLICATION to subscribe the tables
372+ WARNING: subscription was created, but is not connected
373+ HINT: To initiate replication, you must manually create the replication slot, enable the subscription, and refresh the subscription.
366374\dRs+
367375 List of subscriptions
368376 Name | Owner | Enabled | Publication | Binary | Streaming | Two-phase commit | Disable on error | Origin | Synchronous commit | Conninfo | Skip LSN
@@ -377,7 +385,8 @@ CREATE SUBSCRIPTION regress_testsub CONNECTION 'dbname=regress_doesnotexist' PUB
377385ERROR: disable_on_error requires a Boolean value
378386-- now it works
379387CREATE SUBSCRIPTION regress_testsub CONNECTION 'dbname=regress_doesnotexist' PUBLICATION testpub WITH (connect = false, disable_on_error = false);
380- WARNING: tables were not subscribed, you will have to run ALTER SUBSCRIPTION ... REFRESH PUBLICATION to subscribe the tables
388+ WARNING: subscription was created, but is not connected
389+ HINT: To initiate replication, you must manually create the replication slot, enable the subscription, and refresh the subscription.
381390\dRs+
382391 List of subscriptions
383392 Name | Owner | Enabled | Publication | Binary | Streaming | Two-phase commit | Disable on error | Origin | Synchronous commit | Conninfo | Skip LSN
0 commit comments