forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb1008c1
committed
pg_basebackup, pg_receivewal: fix failure to find password in ~/.pgpass.
Sloppy refactoring in commitcca97ce caused these programsto pass dbname = NULL to libpq if there was no "--dbname" switchon the command line, where before "replication" would be passed.This didn't break things completely, because the source server doesn'tcare about the dbname specified for a physical replication connection.However, it did cause libpq to fail to match a ~/.pgpass entry thathas "replication" in the dbname field. Restore the previous behaviorof passing "replication".Also, closer inspection shows that if you do specify a dbnamein the connection string, that is what will be matched to ~/.pgpass,not "replication". This was the pre-existing behavior so we shouldnot change it, but the SGML docs were pretty misleading about it.Improve that.Per bug #18685 from Toshi Harada. Back-patch to v17 where theerror crept in.Discussion:https://postgr.es/m/18685-fee2dd142b9688f1@postgresql.orgDiscussion:https://postgr.es/m/2702546.1730740456@sss.pgh.pa.us1 parent32d07a0 commitb1008c1
File tree
3 files changed
+24
-14
lines changed- doc/src/sgml/ref
- src/bin/pg_basebackup
3 files changed
+24
-14
lines changedLines changed: 10 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
807 | 807 |
| |
808 | 808 |
| |
809 | 809 |
| |
810 |
| - | |
| 810 | + | |
811 | 811 |
| |
812 | 812 |
| |
813 |
| - | |
814 |
| - | |
815 |
| - | |
816 |
| - | |
817 |
| - | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
818 | 822 |
| |
819 | 823 |
| |
820 | 824 |
| |
|
Lines changed: 8 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
315 | 315 |
| |
316 | 316 |
| |
317 | 317 |
| |
318 |
| - | |
| 318 | + | |
319 | 319 |
| |
320 | 320 |
| |
321 |
| - | |
322 |
| - | |
323 |
| - | |
324 |
| - | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
325 | 328 |
| |
326 | 329 |
| |
327 | 330 |
| |
|
Lines changed: 6 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
74 | 74 |
| |
75 | 75 |
| |
76 | 76 |
| |
77 |
| - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
78 | 81 |
| |
79 | 82 |
| |
80 | 83 |
| |
| |||
120 | 123 |
| |
121 | 124 |
| |
122 | 125 |
| |
123 |
| - | |
| 126 | + | |
124 | 127 |
| |
125 | 128 |
| |
126 | 129 |
| |
127 | 130 |
| |
128 |
| - | |
| 131 | + | |
129 | 132 |
| |
130 | 133 |
| |
131 | 134 |
| |
|
0 commit comments
Comments
(0)