]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Fix ABI break by moving PROCSIG_SLOTSYNC_MESSAGE in ProcSignalReason
authorFujii Masao <fujii@postgresql.org>
Thu, 9 Apr 2026 06:25:40 +0000 (15:25 +0900)
committerFujii Masao <fujii@postgresql.org>
Thu, 9 Apr 2026 06:25:40 +0000 (15:25 +0900)
Commit 58c1188a3ea added PROCSIG_SLOTSYNC_MESSAGE in the middle of
enum ProcSignalReason, breaking the ABI.

Fix this by moving PROCSIG_SLOTSYNC_MESSAGE to the end of the enum,
to restore ordering.

Per buildfarm member crake.

Author: Fujii Masao <masao.fujii@gmail.com>
Reviewed-by: Nisha Moond <nisha.moond412@gmail.com>
Discussion: https://postgr.es/m/CAHGQGwH_AAbtsiYDJt65N7_4PJ0CgOJmBEaCq68e5_tcuG_vXw@mail.gmail.com
Backpatch-through: 18 only

src/include/storage/procsignal.h

index c4a59325604e15f8055fc4b9626cda9c748d0b15..234cfcb364a36cd130be88c357d9371fe2327e8e 100644 (file)
@@ -36,7 +36,6 @@ typedef enum
        PROCSIG_BARRIER,                        /* global barrier interrupt  */
        PROCSIG_LOG_MEMORY_CONTEXT, /* ask backend to log the memory contexts */
        PROCSIG_PARALLEL_APPLY_MESSAGE, /* Message from parallel apply workers */
-       PROCSIG_SLOTSYNC_MESSAGE,       /* ask slot synchronization to stop */
 
        /* Recovery conflict reasons */
        PROCSIG_RECOVERY_CONFLICT_FIRST,
@@ -48,9 +47,11 @@ typedef enum
        PROCSIG_RECOVERY_CONFLICT_BUFFERPIN,
        PROCSIG_RECOVERY_CONFLICT_STARTUP_DEADLOCK,
        PROCSIG_RECOVERY_CONFLICT_LAST = PROCSIG_RECOVERY_CONFLICT_STARTUP_DEADLOCK,
+
+       PROCSIG_SLOTSYNC_MESSAGE,       /* ask slot synchronization to stop */
 } ProcSignalReason;
 
-#define NUM_PROCSIGNALS (PROCSIG_RECOVERY_CONFLICT_LAST + 1)
+#define NUM_PROCSIGNALS (PROCSIG_SLOTSYNC_MESSAGE + 1)
 
 typedef enum
 {