You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I find that the pgut_connection_replication() function passes the name parameter, which is only used in elog(). The connection string uses replication as the connection database.
It seems the elog's message is incorrect if the connection is failed. Why not use dbname as the connection database?
The text was updated successfully, but these errors were encountered:
@fukanchik Thank you for the explanation. IIUC, the pgut_connect_replication() is only used for physical replication, so the dbname has no means, maybe we can remove this parameter, and modify the elog() as following:
elog(strict ? ERROR : WARNING, "could not connect to server: %s", PQerrorMessage(tmpconn));
Hi,
I find that the pgut_connection_replication() function passes the
name
parameter, which is only used inelog()
. The connection string usesreplication
as the connection database.It seems the elog's message is incorrect if the connection is failed. Why not use
dbname
as the connection database?The text was updated successfully, but these errors were encountered: