Fix off-by-one error in autovacuum shmem struct sizing. This could lead to
authorHeikki Linnakangas <[email protected]>
Wed, 12 Nov 2008 10:10:43 +0000 (10:10 +0000)
committerHeikki Linnakangas <[email protected]>
Wed, 12 Nov 2008 10:10:43 +0000 (10:10 +0000)
autovacuum worker sending SIGUSR1 signal to wrong process, per Zou Yong's
report.

Backpatch to 8.3.

src/backend/postmaster/autovacuum.c

index 491ac9c6e0168d10214a63f251910aa54fbc7255..0c7e6b8915e7f3632ad80e3a9031d6f0fdd75cf8 100644 (file)
@@ -215,7 +215,7 @@ typedef enum
 {
        AutoVacForkFailed,                      /* failed trying to start a worker */
        AutoVacRebalance,                       /* rebalance the cost limits */
-       AutoVacNumSignals = AutoVacRebalance            /* must be last */
+       AutoVacNumSignals                       /* must be last */
 } AutoVacuumSignal;
 
 /*-------------