forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitfdf9d00
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 commit58cd8dc.Reported-by: Robert Haas <robertmhaas@gmail.com>Discussion:https://postgr.es/m/CA+TgmobssJ6rS22dspWnu-oDxXevGmhMD8VcRBjmj-b9UDqRjw@mail.gmail.com1 parent82f97d3 commitfdf9d00
File tree
4 files changed
+6
-5
lines changed- contrib
- oid2name
- vacuumlo
- src/bin
- pg_dump
- pgbench
4 files changed
+6
-5
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
340 | 340 |
| |
341 | 341 |
| |
342 | 342 |
| |
343 |
| - | |
| 343 | + | |
344 | 344 |
| |
345 | 345 |
| |
346 | 346 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
130 | 130 |
| |
131 | 131 |
| |
132 | 132 |
| |
133 |
| - | |
| 133 | + | |
134 | 134 |
| |
135 | 135 |
| |
136 | 136 |
| |
|
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: 3 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1206 | 1206 |
| |
1207 | 1207 |
| |
1208 | 1208 |
| |
1209 |
| - | |
| 1209 | + | |
1210 | 1210 |
| |
1211 | 1211 |
| |
1212 | 1212 |
| |
| |||
5678 | 5678 |
| |
5679 | 5679 |
| |
5680 | 5680 |
| |
5681 |
| - | |
| 5681 | + | |
| 5682 | + | |
5682 | 5683 |
| |
5683 | 5684 |
| |
5684 | 5685 |
| |
|
0 commit comments
Comments
(0)