Skip to content

Commit 3e2109a

Browse files
committed
Emulate 9.6 signal behavior on older Postgres versions
1 parent b7d0d9d commit 3e2109a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pglogical_worker.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
#include "storage/ipc.h"
2020
#include "storage/proc.h"
21+
#include "storage/procsignal.h"
2122

2223
#include "pglogical_sync.h"
2324
#include "pglogical_worker.h"
@@ -166,6 +167,10 @@ pglogical_worker_attach(int slot)
166167
{
167168
Assert(slot < PGLogicalCtx->total_workers);
168169

170+
#if PG_VERSION_NUM < 90600
171+
set_latch_on_sigusr1 = true;
172+
#endif
173+
169174
LWLockAcquire(PGLogicalCtx->lock, LW_EXCLUSIVE);
170175

171176
before_shmem_exit(pglogical_worker_on_exit, (Datum) 0);

0 commit comments

Comments
 (0)