- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit336bc0d
committed
Fix pg_resetxlog to use correct path to postmaster.pid.
Since we've already chdir'd into the data directory, the file shouldbe referenced as just "postmaster.pid", without prefixing the directorypath. This is harmless in the normal case where an absolute PGDATA pathis used, but quite dangerous if a relative path is specified, since theprogram might then fail to notice an active postmaster.Reported by Hari Babu. This got broken in my commiteb5949d, so patch all active versions.1 parent3352e25 commit336bc0d
1 file changed
+4
-6
lines changedLines changed: 4 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
87 | 87 |
| |
88 | 88 |
| |
89 | 89 |
| |
90 |
| - | |
91 | 90 |
| |
92 | 91 |
| |
93 | 92 |
| |
| |||
262 | 261 |
| |
263 | 262 |
| |
264 | 263 |
| |
265 |
| - | |
266 |
| - | |
267 |
| - | |
| 264 | + | |
268 | 265 |
| |
269 | 266 |
| |
270 | 267 |
| |
271 |
| - | |
| 268 | + | |
| 269 | + | |
272 | 270 |
| |
273 | 271 |
| |
274 | 272 |
| |
275 | 273 |
| |
276 | 274 |
| |
277 | 275 |
| |
278 | 276 |
| |
279 |
| - | |
| 277 | + | |
280 | 278 |
| |
281 | 279 |
| |
282 | 280 |
| |
|
0 commit comments
Comments
(0)