Skip to content

Commit e013288

Browse files
committed
Improve code comments
As of 0c2c81b, the replication parameter in libpq is no longer "deliberately undocumented".
1 parent a8677e3 commit e013288

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/backend/replication/libpqwalreceiver/libpqwalreceiver.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,17 +128,18 @@ libpqrcv_connect(const char *conninfo, bool logical, const char *appname,
128128

129129
/*
130130
* 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.
131+
* URI), and pass some extra options.
135132
*/
136133
keys[i] = "dbname";
137134
vals[i] = conninfo;
138135
keys[++i] = "replication";
139136
vals[i] = logical ? "database" : "true";
140137
if (!logical)
141138
{
139+
/*
140+
* The database name is ignored by the server in replication mode, but
141+
* specify "replication" for .pgpass lookup.
142+
*/
142143
keys[++i] = "dbname";
143144
vals[i] = "replication";
144145
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy