Skip to content

Commit e019bbc

Browse files
committed
Set the node properly, per Tom.
1 parent a0abe87 commit e019bbc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/backend/postmaster/autovacuum.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
*
1212
* IDENTIFICATION
13-
* $PostgreSQL: pgsql/src/backend/postmaster/autovacuum.c,v 1.37 2007/03/23 21:45:17 alvherre Exp $
13+
* $PostgreSQL: pgsql/src/backend/postmaster/autovacuum.c,v 1.38 2007/03/23 21:57:10 alvherre Exp $
1414
*
1515
*-------------------------------------------------------------------------
1616
*/
@@ -1276,13 +1276,16 @@ autovacuum_do_vac_analyze(Oid relid, bool dovacuum, bool doanalyze,
12761276
VacuumStmt vacstmt;
12771277
MemoryContext old_cxt;
12781278

1279+
MemSet(&vacstmt, 0, sizeof(vacstmt));
1280+
12791281
/*
12801282
* The list must survive transaction boundaries, so make sure we create it
12811283
* in a long-lived context
12821284
*/
12831285
old_cxt = MemoryContextSwitchTo(AutovacMemCxt);
12841286

12851287
/* Set up command parameters */
1288+
vacstmt.type = T_VacuumStmt;
12861289
vacstmt.vacuum = dovacuum;
12871290
vacstmt.full = false;
12881291
vacstmt.analyze = doanalyze;

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