Improve code comments
As of 0c2c81b403db420bfce36f168887db72932dbf09, the replication parameter in libpq is no longer "deliberately undocumented".
This commit is contained in:
parent
a8677e3ff6
commit
e013288a65
@ -128,10 +128,7 @@ libpqrcv_connect(const char *conninfo, bool logical, const char *appname,
|
||||
|
||||
/*
|
||||
* We use the expand_dbname parameter to process the connection string (or
|
||||
* URI), and pass some extra options. The deliberately undocumented
|
||||
* parameter "replication=true" makes it a replication connection. The
|
||||
* database name is ignored by the server in replication mode, but specify
|
||||
* "replication" for .pgpass lookup.
|
||||
* URI), and pass some extra options.
|
||||
*/
|
||||
keys[i] = "dbname";
|
||||
vals[i] = conninfo;
|
||||
@ -139,6 +136,10 @@ libpqrcv_connect(const char *conninfo, bool logical, const char *appname,
|
||||
vals[i] = logical ? "database" : "true";
|
||||
if (!logical)
|
||||
{
|
||||
/*
|
||||
* The database name is ignored by the server in replication mode, but
|
||||
* specify "replication" for .pgpass lookup.
|
||||
*/
|
||||
keys[++i] = "dbname";
|
||||
vals[i] = "replication";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user