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:
parent
9ac53e7978
commit
5b9c854dae
@ -55,7 +55,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/postmaster/autovacuum.c,v 1.71.2.6 2008/07/23 20:21:04 alvherre Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/postmaster/autovacuum.c,v 1.71.2.7 2008/11/12 10:10:43 heikki Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -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;
|
||||
|
||||
/*-------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user