Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit61975d6

Browse files
committed
Improve error message in WAL sender
The previous error message when attempting to run a general SQL commandin a physical replication WAL sender was a bit sloppy.Reported-by: Fujii Masao <masao.fujii@gmail.com>
1 parent1a2fdc9 commit61975d6

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
caseT_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)

[8]ページ先頭

©2009-2025 Movatter.jp