From: Michael Paquier Date: Sun, 13 Jan 2019 13:36:23 +0000 (+0900) Subject: Fix error message for logical replication targets X-Git-Tag: REL_12_BETA1~955 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9f527a6e9a70ea668616e20d05c31d7a086669a4;p=postgresql Fix error message for logical replication targets This fixes an oversight from 373bda6. Noted by Erik Rijkers. --- diff --git a/src/backend/executor/execReplication.c b/src/backend/executor/execReplication.c index bb1ab57595..a7eebc45e3 100644 --- a/src/backend/executor/execReplication.c +++ b/src/backend/executor/execReplication.c @@ -622,7 +622,7 @@ CheckSubscriptionRelkind(char relkind, const char *nspname, else if (relkind == RELKIND_FOREIGN_TABLE) ereport(ERROR, (errcode(ERRCODE_WRONG_OBJECT_TYPE), - errmsg("cannot use relation \"%s.%s\" as logical replication", + errmsg("cannot use relation \"%s.%s\" as logical replication target", nspname, relname), errdetail("\"%s.%s\" is a foreign table.", nspname, relname)));