Content-Length: 288067 | pFad | http://github.com/postgrespro/postgres/commit/53680c116ce8c501e4081332d32ba0e93aa1aaa2

18 Fix copyfuncs/equalfuncs support for VacuumStmt. · postgrespro/postgres@53680c1 · GitHub
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/13988.1552960403@sss.pgh.pa.us
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

Lines changed: 2 additions & 1 deletion
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

Lines changed: 2 additions & 1 deletion
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/53680c116ce8c501e4081332d32ba0e93aa1aaa2

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy