- Notifications
You must be signed in to change notification settings - Fork28
Commitf17e8f3
committed
Report the true database name on connection errors
When reporting connection errors, we might show a database name in themessage that's not the one we actually tried to connect to, if thedatabase was taken from libpq defaults instead of from user parameters.Fix such error messages to use PQdb(), which reports the correct name.(But, per commit2930c05, make sure not to try to print NULL.)Apply to branches 9.5 through 13. Branch master has already beenchanged differently by commit 58cd8dca3de0.Reported-by: Robert Haas <robertmhaas@gmail.com>Discussion:https://postgr.es/m/CA+TgmobssJ6rS22dspWnu-oDxXevGmhMD8VcRBjmj-b9UDqRjw@mail.gmail.com1 parent64bdb6e commitf17e8f3
File tree
4 files changed
+6
-6
lines changed- contrib
- oid2name
- vacuumlo
- src/bin
- pg_dump
- pgbench
4 files changed
+6
-6
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
348 | 348 |
| |
349 | 349 |
| |
350 | 350 |
| |
351 |
| - | |
352 |
| - | |
| 351 | + | |
| 352 | + | |
353 | 353 |
| |
354 | 354 |
| |
355 | 355 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
129 | 129 |
| |
130 | 130 |
| |
131 | 131 |
| |
132 |
| - | |
| 132 | + | |
133 | 133 |
| |
134 | 134 |
| |
135 | 135 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1773 | 1773 |
| |
1774 | 1774 |
| |
1775 | 1775 |
| |
1776 |
| - | |
| 1776 | + | |
1777 | 1777 |
| |
1778 | 1778 |
| |
1779 | 1779 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1228 | 1228 |
| |
1229 | 1229 |
| |
1230 | 1230 |
| |
1231 |
| - | |
| 1231 | + | |
1232 | 1232 |
| |
1233 | 1233 |
| |
1234 | 1234 |
| |
| |||
6047 | 6047 |
| |
6048 | 6048 |
| |
6049 | 6049 |
| |
6050 |
| - | |
| 6050 | + | |
6051 | 6051 |
| |
6052 | 6052 |
| |
6053 | 6053 |
| |
|
0 commit comments
Comments
(0)