We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parenta8677e3 commite013288Copy full SHA for e013288
src/backend/replication/libpqwalreceiver/libpqwalreceiver.c
@@ -128,17 +128,18 @@ libpqrcv_connect(const char *conninfo, bool logical, const char *appname,
128
129
/*
130
* We use the expand_dbname parameter to process the connection string (or
131
- * URI), and pass some extra options. The deliberately undocumented
132
- * parameter "replication=true" makes it a replication connection. The
133
- * database name is ignored by the server in replication mode, but specify
134
- * "replication" for .pgpass lookup.
+ * URI), and pass some extra options.
135
*/
136
keys[i]="dbname";
137
vals[i]=conninfo;
138
keys[++i]="replication";
139
vals[i]=logical ?"database" :"true";
140
if (!logical)
141
{
+/*
+ * The database name is ignored by the server in replication mode, but
+ * specify "replication" for .pgpass lookup.
142
+ */
143
keys[++i]="dbname";
144
vals[i]="replication";
145
}