Skip to content

Commit 53680c1

Browse files
committed
Fix copyfuncs/equalfuncs support for VacuumStmt.
Commit 6776142 failed to do this, and the buildfarm broke. Patch by me, per advice from Tom Lane and Michael Paquier. Discussion: http://postgr.es/m/[email protected]
1 parent 01bde4f commit 53680c1

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/backend/nodes/copyfuncs.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -3852,8 +3852,9 @@ _copyVacuumStmt(const VacuumStmt *from)
38523852
{
38533853
VacuumStmt *newnode = makeNode(VacuumStmt);
38543854

3855-
COPY_SCALAR_FIELD(options);
3855+
COPY_NODE_FIELD(options);
38563856
COPY_NODE_FIELD(rels);
3857+
COPY_SCALAR_FIELD(is_vacuumcmd);
38573858

38583859
return newnode;
38593860
}

src/backend/nodes/equalfuncs.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -1671,8 +1671,9 @@ _equalDropdbStmt(const DropdbStmt *a, const DropdbStmt *b)
16711671
static bool
16721672
_equalVacuumStmt(const VacuumStmt *a, const VacuumStmt *b)
16731673
{
1674-
COMPARE_SCALAR_FIELD(options);
1674+
COMPARE_NODE_FIELD(options);
16751675
COMPARE_NODE_FIELD(rels);
1676+
COMPARE_SCALAR_FIELD(is_vacuumcmd);
16761677

16771678
return true;
16781679
}

0 commit comments

Comments
 (0)