diff options
| author | Andres Freund | 2017-06-08 22:00:53 +0000 |
|---|---|---|
| committer | Andres Freund | 2017-06-08 22:38:50 +0000 |
| commit | 2c48f5db64b1b999b08052115a5ce873343c372a (patch) | |
| tree | 135bf4827ff26ca27680087da070fbc94e1f1e2c /src/include | |
| parent | 5fd56b9f5b4a007a4122c313a184f78f1647c4ab (diff) | |
Use standard interrupt handling in logical replication launcher.
Previously the exit handling was only able to exit from within the
main loop, and not from within the backend code it calls. Fix that by
using the standard die() SIGTERM handler, and adding the necessary
CHECK_FOR_INTERRUPTS() call.
This requires adding yet another process-type-specific branch to
ProcessInterrupts(), which hints that we probably should generalize
that handling. But that's work for another day.
Author: Petr Jelinek
Reviewed-By: Andres Freund
Discussion: https://postgr.es/m/fe072153-babd-3b5d-8052-73527a6eb657@2ndquadrant.com
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/replication/logicallauncher.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/replication/logicallauncher.h b/src/include/replication/logicallauncher.h index d202a237e7a..4f3e89e0619 100644 --- a/src/include/replication/logicallauncher.h +++ b/src/include/replication/logicallauncher.h @@ -24,4 +24,6 @@ extern void ApplyLauncherShmemInit(void); extern void ApplyLauncherWakeupAtCommit(void); extern void AtEOXact_ApplyLauncher(bool isCommit); +extern bool IsLogicalLauncher(void); + #endif /* LOGICALLAUNCHER_H */ |
