Skip to content

Commit 61975d6

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 1a2fdc9 commit 61975d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/replication/walsender.c

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy