Fix off-by-one error in autovacuum shmem struct sizing. This could lead to

autovacuum worker sending SIGUSR1 signal to wrong process, per Zou Yong's
report.

Backpatch to 8.3.
This commit is contained in:
Heikki Linnakangas 2008-11-12 10:10:32 +00:00
parent d1ab3eb712
commit 4c22564471
1 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/postmaster/autovacuum.c,v 1.86 2008/11/03 19:03:41 alvherre Exp $
* $PostgreSQL: pgsql/src/backend/postmaster/autovacuum.c,v 1.87 2008/11/12 10:10:32 heikki Exp $
*
*-------------------------------------------------------------------------
*/
@ -222,7 +222,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;
/*-------------