Improve code comments

As of 0c2c81b403, the replication
parameter in libpq is no longer "deliberately undocumented".
This commit is contained in:
Peter Eisentraut 2018-04-14 10:04:36 -04:00
parent a8677e3ff6
commit e013288a65
1 changed files with 5 additions and 4 deletions

View File

@ -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";
}