forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitdc57366
committed
Fix check for PGHOST[ADDR] in pg_upgrade with Windows and temporary paths
The checks currently done at the startup of pg_upgrade on PGHOST andPGHOSTADDR to avoid any attempts to access to an external cluster failsetting those parameters to Windows paths or even temporary pathsprefixed by an '@', as it only considers as a valid path stringsbeginning with a slash.As mentioned by Andres, is_unixsock_path() is designed to detect suchcases, so, like any other code paths dealing with the same problem (psqland libpq), use it rather than assuming that all valid paths areprefixed with just a slash.This issue has been found while testing the TAP tests of pg_upgradethrough the CI on Windows. This is a bug, but nobody has complainedabout it since pg_upgrade exists so no backpatch is done, at least fornow.Analyzed-by: Andres Freund, Michael PaquierDiscussion:https://postgr.es/m/YeYj4DU5qY/rtKXT@paquier.xyz1 parent9028cce commitdc57366
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| 14 | + | |
14 | 15 |
| |
15 | 16 |
| |
16 | 17 |
| |
| |||
368 | 369 |
| |
369 | 370 |
| |
370 | 371 |
| |
371 |
| - | |
| 372 | + | |
372 | 373 |
| |
373 | 374 |
| |
374 | 375 |
| |
|
0 commit comments
Comments
(0)