Commit 9f527a6e authored by Michael Paquier's avatar Michael Paquier

Fix error message for logical replication targets

This fixes an oversight from 373bda61.

Noted by Erik Rijkers.
parent bb874e30
......@@ -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)));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment