Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite013288

Browse files
committed
Improve code comments
As of0c2c81b, the replicationparameter in libpq is no longer "deliberately undocumented".
1 parenta8677e3 commite013288

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)

[8]ページ先頭

©2009-2025 Movatter.jp