Skip to content

Commit 4c22564

Browse files
committed
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.
1 parent d1ab3eb commit 4c22564

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/postmaster/autovacuum.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
*
5656
*
5757
* IDENTIFICATION
58-
* $PostgreSQL: pgsql/src/backend/postmaster/autovacuum.c,v 1.86 2008/11/03 19:03:41 alvherre Exp $
58+
* $PostgreSQL: pgsql/src/backend/postmaster/autovacuum.c,v 1.87 2008/11/12 10:10:32 heikki Exp $
5959
*
6060
*-------------------------------------------------------------------------
6161
*/
@@ -222,7 +222,7 @@ typedef enum
222222
{
223223
AutoVacForkFailed, /* failed trying to start a worker */
224224
AutoVacRebalance, /* rebalance the cost limits */
225-
AutoVacNumSignals = AutoVacRebalance /* must be last */
225+
AutoVacNumSignals /* must be last */
226226
} AutoVacuumSignal;
227227

228228
/*-------------

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy