mirror of
https://github.com/postgres/postgres.git
synced 2025-06-17 17:02:08 +03:00
Remove set_latch_on_sigusr1 flag.
This flag has proven to be a recipe for bugs, and it doesn't seem like it can really buy anything in terms of performance. So let's just *always* set the process latch when we receive SIGUSR1 instead of trying to do it only when needed. Per my recent proposal on pgsql-hackers.
This commit is contained in:
@ -2825,9 +2825,7 @@ RecoveryConflictInterrupt(ProcSignalReason reason)
|
||||
/*
|
||||
* Set the process latch. This function essentially emulates signal
|
||||
* handlers like die() and StatementCancelHandler() and it seems prudent
|
||||
* to behave similarly as they do. Alternatively all plain backend code
|
||||
* waiting on that latch, expecting to get interrupted by query cancels et
|
||||
* al., would also need to set set_latch_on_sigusr1.
|
||||
* to behave similarly as they do.
|
||||
*/
|
||||
SetLatch(MyLatch);
|
||||
|
||||
|
Reference in New Issue
Block a user