aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2023-08-16 15:09:50 +0200
committerPeter Eisentraut <peter@eisentraut.org>2023-08-16 15:09:50 +0200
commit842b65905046be8a979a67484c9fd4110e4e2dfe (patch)
tree5bf33f6b4dfd979c40574e28c9cad3d6a89658de /src
parentc5c8bd29b9a22a05f81857c6921c0bc615140cc5 (diff)
downloadpostgresql-842b65905046be8a979a67484c9fd4110e4e2dfe.tar.gz
postgresql-842b65905046be8a979a67484c9fd4110e4e2dfe.zip
Improved CREATE SUBSCRIPTION message for clarity
Discussion: https://www.postgresql.org/message-id/CAHut+PtfzQ7JRkb0-Y_UejAxaLQ17-bGMvV4MJJHcPoP3ML2bg@mail.gmail.com
Diffstat (limited to 'src')
-rw-r--r--src/backend/commands/subscriptioncmds.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/commands/subscriptioncmds.c b/src/backend/commands/subscriptioncmds.c
index d4e798baeb1..34d881fd94f 100644
--- a/src/backend/commands/subscriptioncmds.c
+++ b/src/backend/commands/subscriptioncmds.c
@@ -2023,8 +2023,8 @@ check_publications_origin(WalReceiverConn *wrconn, List *publications,
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",
subname),
- errdetail_plural("Subscribed publication %s is subscribing to other publications.",
- "Subscribed publications %s are 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.",
+ "The subscription being created subscribes to publications (%s) that contain tables that are written to by other subscriptions.",
list_length(publist), pubnames->data),
errhint("Verify that initial data copied from the publisher tables did not come from other origins."));
}