Commit 61975d6c authored by Peter Eisentraut's avatar Peter Eisentraut

Improve error message in WAL sender

The previous error message when attempting to run a general SQL command
in a physical replication WAL sender was a bit sloppy.
Reported-by: default avatarFujii Masao <masao.fujii@gmail.com>
parent 1a2fdc99
......@@ -1545,7 +1545,7 @@ exec_replication_command(const char *cmd_string)
case T_SQLCmd:
if (MyDatabaseId == InvalidOid)
ereport(ERROR,
(errmsg("not connected to database")));
(errmsg("cannot execute SQL commands in WAL sender for physical replication")));
/* Tell the caller that this wasn't a WalSender command. */
return false;
......
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