Content-Length: 282085 | pFad | http://github.com/postgrespro/postgres_cluster/commit/e013288a6509549866c5d531257480f159c6900d

04 Improve code comments · postgrespro/postgres_cluster@e013288 · GitHub
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)








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/e013288a6509549866c5d531257480f159c6900d

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy