Improved CREATE SUBSCRIPTION message for clarity
Discussion: https://www.postgresql.org/message-id/CAHut+PtfzQ7JRkb0-Y_UejAxaLQ17-bGMvV4MJJHcPoP3ML2bg@mail.gmail.com
This commit is contained in:
parent
78806a9509
commit
1e7ca1189c
|
@ -2023,8 +2023,8 @@ check_publications_origin(WalReceiverConn *wrconn, List *publications,
|
||||||
errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE),
|
errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE),
|
||||||
errmsg("subscription \"%s\" requested copy_data with origin = NONE but might copy data that had a different origin",
|
errmsg("subscription \"%s\" requested copy_data with origin = NONE but might copy data that had a different origin",
|
||||||
subname),
|
subname),
|
||||||
errdetail_plural("Subscribed publication %s is subscribing to other publications.",
|
errdetail_plural("The subscription being created subscribes to a publication (%s) that contains tables that are written to by other subscriptions.",
|
||||||
"Subscribed publications %s are subscribing to other publications.",
|
"The subscription being created subscribes to publications (%s) that contain tables that are written to by other subscriptions.",
|
||||||
list_length(publist), pubnames->data),
|
list_length(publist), pubnames->data),
|
||||||
errhint("Verify that initial data copied from the publisher tables did not come from other origins."));
|
errhint("Verify that initial data copied from the publisher tables did not come from other origins."));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue