postgres.git / summary / log / commit / refs

commit    2b0ded5060cc2e0b7d6c765af5b5f7334f64f5dc
Author:   Peter Eisentraut <peter_e@gmx.net>
Date:     Wed Sep 13 12:31:03 2017 +0000

    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>


src/backend/replication/walsender.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/replication/walsender.c b/src/backend/replication/walsender.c index db346e6edbd..1fbe8ed71b0 100644 --- a/src/backend/replication/walsender.c +++ b/src/backend/replication/walsender.c @@ -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; [parent: b1705f35f805]