1
1
diff --git a/src/backend/storage/ipc/procsignal.c b/src/backend/storage/ipc/procsignal.c
2
- indexa3d6ac5318..f91a1b1422 100644
2
+ indexb9302ac..95f7da2 100644
3
3
--- a/src/backend/storage/ipc/procsignal.c
4
4
+++ b/src/backend/storage/ipc/procsignal.c
5
- @@ -26 ,6 +26 ,7 @@
5
+ @@ -27 ,6 +27 ,7 @@
6
6
#include "storage/shmem.h"
7
7
#include "storage/sinval.h"
8
8
#include "tcop/tcopprot.h"
9
9
+ #include "utils/memutils.h"
10
10
11
11
12
12
/*
13
- @@ -59 ,12 +60 ,17 @@ typedef struct
13
+ @@ -60 ,12 +61 ,17 @@ typedef struct
14
14
*/
15
15
#define NumProcSignalSlots(MaxBackends + NUM_AUXPROCTYPES)
16
16
@@ -28,7 +28,7 @@ index a3d6ac5318..f91a1b1422 100644
28
28
/*
29
29
* ProcSignalShmemSize
30
30
*Compute space needed for procsignal's shared memory
31
- @@ -165 ,6 +171 ,57 @@ CleanupProcSignalState(int status, Datum arg)
31
+ @@ -166 ,6 +172 ,57 @@ CleanupProcSignalState(int status, Datum arg)
32
32
}
33
33
34
34
/*
@@ -86,7 +86,7 @@ index a3d6ac5318..f91a1b1422 100644
86
86
* SendProcSignal
87
87
*Send a signal to a Postgres process
88
88
*
89
- @@ -259 ,7 +316 ,8 @@ CheckProcSignal(ProcSignalReason reason)
89
+ @@ -260 ,7 +317 ,8 @@ CheckProcSignal(ProcSignalReason reason)
90
90
void
91
91
procsignal_sigusr1_handler(SIGNAL_ARGS)
92
92
{
@@ -96,7 +96,7 @@ index a3d6ac5318..f91a1b1422 100644
96
96
97
97
if (CheckProcSignal(PROCSIG_CATCHUP_INTERRUPT))
98
98
HandleCatchupInterrupt();
99
- @@ -288 ,9 +346 ,87 @@ procsignal_sigusr1_handler(SIGNAL_ARGS)
99
+ @@ -292 ,9 +350 ,87 @@ procsignal_sigusr1_handler(SIGNAL_ARGS)
100
100
if (CheckProcSignal(PROCSIG_RECOVERY_CONFLICT_BUFFERPIN))
101
101
RecoveryConflictInterrupt(PROCSIG_RECOVERY_CONFLICT_BUFFERPIN);
102
102
@@ -185,10 +185,10 @@ index a3d6ac5318..f91a1b1422 100644
185
185
+ RESUME_INTERRUPTS();
186
186
+ }
187
187
diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c
188
- indexf6be98bdd4..5fee511676 100644
188
+ index63a1994..0dfad33 100644
189
189
--- a/src/backend/tcop/postgres.c
190
190
+++ b/src/backend/tcop/postgres.c
191
- @@ -3005 ,6 +3005 ,8 @@ ProcessInterrupts(void)
191
+ @@ -3012 ,6 +3012 ,8 @@ ProcessInterrupts(void)
192
192
193
193
if (ParallelMessagePending)
194
194
HandleParallelMessages();
@@ -198,7 +198,7 @@ index f6be98bdd4..5fee511676 100644
198
198
199
199
200
200
diff --git a/src/include/storage/procsignal.h b/src/include/storage/procsignal.h
201
- indexf67b9821f2..e941dcbb69 100644
201
+ index20bb05b..9b16eb3 100644
202
202
--- a/src/include/storage/procsignal.h
203
203
+++ b/src/include/storage/procsignal.h
204
204
@@ -17,6 +17,8 @@
@@ -219,7 +219,7 @@ index f67b9821f2..e941dcbb69 100644
219
219
PROCSIG_CATCHUP_INTERRUPT,/* sinval catchup interrupt */
220
220
PROCSIG_NOTIFY_INTERRUPT,/* listen/notify interrupt */
221
221
PROCSIG_PARALLEL_MESSAGE,/* message from cooperating parallel backend */
222
- @@ -41 ,9 +45 ,20 @@ typedef enum
222
+ @@ -42 ,9 +46 ,20 @@ typedef enum
223
223
PROCSIG_RECOVERY_CONFLICT_BUFFERPIN,
224
224
PROCSIG_RECOVERY_CONFLICT_STARTUP_DEADLOCK,
225
225
@@ -240,7 +240,7 @@ index f67b9821f2..e941dcbb69 100644
240
240
/*
241
241
* prototypes for functions in procsignal.c
242
242
*/
243
- @@ -51 ,9 +66 ,15 @@ extern Size ProcSignalShmemSize(void);
243
+ @@ -52 ,9 +67 ,15 @@ extern Size ProcSignalShmemSize(void);
244
244
extern void ProcSignalShmemInit(void);
245
245
246
246
extern void ProcSignalInit(int pss_idx);
@@ -255,4 +255,4 @@ index f67b9821f2..e941dcbb69 100644
255
255
+
256
256
extern void procsignal_sigusr1_handler(SIGNAL_ARGS);
257
257
258
- #endif /* PROCSIGNAL_H */
258
+ #endif /* PROCSIGNAL_H */