Fix uninitialized copy_data var (src/backend/commands/subscriptioncmds.c)
От | Ranier Vilela |
---|---|
Тема | Fix uninitialized copy_data var (src/backend/commands/subscriptioncmds.c) |
Дата | |
Msg-id | CAEudQAp5P8nr=ze2Gv=BMj=DJFZnrvendZCZcC-fos3QiDe2sg@mail.gmail.com обсуждение исходный текст |
Ответы |
Re: Fix uninitialized copy_data var (src/backend/commands/subscriptioncmds.c)
|
Список | pgsql-hackers |
DROP PUBLICATION publication_name
Changes the list of subscribed publications.
SET
replaces the entire list of publications with a new list,ADD
adds additional publications,DROP
removes publications from the list of publications. See CREATE SUBSCRIPTION for more information. By default, this command will also act likeREFRESH PUBLICATION
, except that in case ofADD
orDROP
, only the added or dropped publications are refreshed.set_publication_option
specifies additional options for this operation. The supported options are:refresh
(boolean
)When false, the command will not try to refresh table information.
REFRESH PUBLICATION
should then be executed separately. The default istrue
.
Additionally, refresh options as described under
REFRESH PUBLICATION
may be specified."- So, is allowed DROP PUBLICATION with (refresh = true)
+WARNING: tables were not subscribed, you will have to run ALTER SUBSCRIPTION ... REFRESH PUBLICATION to subscribe the tables
ALTER SUBSCRIPTION regress_testsub3 REFRESH PUBLICATION;
+ALTER SUBSCRIPTION regress_testsub3 ENABLE;
+ALTER SUBSCRIPTION regress_testsub3 REFRESH PUBLICATION;
+ERROR: could not connect to the publisher: connection to server at "localhost" (::1), port 58080 failed: FATAL: database "regress_doesnotexist" does not exist
ALTER SUBSCRIPTION regress_testsub3 DROP PUBLICATION testpub WITH (refresh = true);
+ALTER SUBSCRIPTION regress_testsub3 DROP PUBLICATION testpub WITH (refresh = true);
+ERROR: subscription must contain at least one publication
Вложения
В списке pgsql-hackers по дате отправления: