Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 2b0ded5

Browse files
committed
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: Fujii Masao <masao.fujii@gmail.com>
1 parent b1705f3 commit 2b0ded5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/replication/walsender.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1545,7 +1545,7 @@ exec_replication_command(const char *cmd_string)
15451545
case T_SQLCmd:
15461546
if (MyDatabaseId == InvalidOid)
15471547
ereport(ERROR,
1548-
(errmsg("not connected to database")));
1548+
(errmsg("cannot execute SQL commands in WAL sender for physical replication")));
15491549

15501550
/* Tell the caller that this wasn't a WalSender command. */
15511551
return false;

0 commit comments

Comments
 (0)