mirror of
https://github.com/postgres/postgres.git
synced 2025-05-21 15:54:08 +03:00
Set the node properly, per Tom.
This commit is contained in:
parent
a0abe87f1c
commit
e019bbc9e8
@ -10,7 +10,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/src/backend/postmaster/autovacuum.c,v 1.37 2007/03/23 21:45:17 alvherre Exp $
|
* $PostgreSQL: pgsql/src/backend/postmaster/autovacuum.c,v 1.38 2007/03/23 21:57:10 alvherre Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -1276,6 +1276,8 @@ autovacuum_do_vac_analyze(Oid relid, bool dovacuum, bool doanalyze,
|
|||||||
VacuumStmt vacstmt;
|
VacuumStmt vacstmt;
|
||||||
MemoryContext old_cxt;
|
MemoryContext old_cxt;
|
||||||
|
|
||||||
|
MemSet(&vacstmt, 0, sizeof(vacstmt));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The list must survive transaction boundaries, so make sure we create it
|
* The list must survive transaction boundaries, so make sure we create it
|
||||||
* in a long-lived context
|
* in a long-lived context
|
||||||
@ -1283,6 +1285,7 @@ autovacuum_do_vac_analyze(Oid relid, bool dovacuum, bool doanalyze,
|
|||||||
old_cxt = MemoryContextSwitchTo(AutovacMemCxt);
|
old_cxt = MemoryContextSwitchTo(AutovacMemCxt);
|
||||||
|
|
||||||
/* Set up command parameters */
|
/* Set up command parameters */
|
||||||
|
vacstmt.type = T_VacuumStmt;
|
||||||
vacstmt.vacuum = dovacuum;
|
vacstmt.vacuum = dovacuum;
|
||||||
vacstmt.full = false;
|
vacstmt.full = false;
|
||||||
vacstmt.analyze = doanalyze;
|
vacstmt.analyze = doanalyze;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user