Content-Length: 257846 | pFad | http://github.com/postgrespro/postgres_cluster/commit/61975d6c2cf5bbcf40a2e3160914ecad7a21df1a

45 Improve error message in WAL sender · postgrespro/postgres_cluster@61975d6 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/61975d6c2cf5bbcf40a2e3160914ecad7a21df1a

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy