forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0ce5cf2
committed
Allow replication slots to be dropped in single-user mode
Starting with commit9915de6, replication slot drop uses acondition variable sleep to wait until the current user of the slot goesaway. This is more user friendly than the previous behavior of erroringout if the slot is in use, but it fails with a not-for-user-consumptionerror message in single-user mode; plus, if you're using single-usermode because you don't want to start the server in the regular mode(say, disk is full and WAL won't recycle because of the slot), it'sinconvenient.Fix by skipping the cond variable sleep in single-user mode, sincethere can't be anybody to wait for anyway.Reported-by: tushar <tushar.ahuja@enterprisedb.com>Author: Álvaro Herrera <alvherre@alvh.no-ip.org>Discussion:https://postgr.es/m/3b2f809f-326c-38dd-7a9e-897f957a4eb1@enterprisedb.com1 parent8fb68aa commit0ce5cf2
1 file changed
+18
-10
lines changedLines changed: 18 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
351 | 351 |
| |
352 | 352 |
| |
353 | 353 |
| |
354 |
| - | |
355 |
| - | |
356 |
| - | |
357 |
| - | |
| 354 | + | |
| 355 | + | |
358 | 356 |
| |
359 |
| - | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
360 | 365 |
| |
361 |
| - | |
| 366 | + | |
362 | 367 |
| |
363 |
| - | |
364 |
| - | |
365 |
| - | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
366 | 371 |
| |
367 |
| - | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
368 | 376 |
| |
369 | 377 |
| |
370 | 378 |
| |
|
0 commit comments
Comments
(0)