Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit591d404

Browse files
committed
Add readfuncs.c support for AppendRelInfo.
This is made necessary by the fact that commit6ef77cf addedAppendRelInfos to plan trees. I'd concluded that this extra code wasnot necessary because we don't transmit that data to parallel workers... but I forgot about -DWRITE_READ_PARSE_PLAN_TREES. Per buildfarm.
1 parent776a2c8 commit591d404

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

‎src/backend/nodes/readfuncs.c

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1342,6 +1342,33 @@ _readOnConflictExpr(void)
13421342
READ_DONE();
13431343
}
13441344

1345+
/*
1346+
*Stuff from pathnodes.h.
1347+
*
1348+
* Mostly we don't need to read planner nodes back in again, but some
1349+
* of these also end up in plan trees.
1350+
*/
1351+
1352+
/*
1353+
* _readAppendRelInfo
1354+
*/
1355+
staticAppendRelInfo*
1356+
_readAppendRelInfo(void)
1357+
{
1358+
READ_LOCALS(AppendRelInfo);
1359+
1360+
READ_UINT_FIELD(parent_relid);
1361+
READ_UINT_FIELD(child_relid);
1362+
READ_OID_FIELD(parent_reltype);
1363+
READ_OID_FIELD(child_reltype);
1364+
READ_NODE_FIELD(translated_vars);
1365+
READ_INT_FIELD(num_child_cols);
1366+
READ_ATTRNUMBER_ARRAY(parent_colnos,local_node->num_child_cols);
1367+
READ_OID_FIELD(parent_reloid);
1368+
1369+
READ_DONE();
1370+
}
1371+
13451372
/*
13461373
*Stuff from parsenodes.h.
13471374
*/
@@ -2690,6 +2717,8 @@ parseNodeString(void)
26902717
return_value=_readFromExpr();
26912718
elseif (MATCH("ONCONFLICTEXPR",14))
26922719
return_value=_readOnConflictExpr();
2720+
elseif (MATCH("APPENDRELINFO",13))
2721+
return_value=_readAppendRelInfo();
26932722
elseif (MATCH("RTE",3))
26942723
return_value=_readRangeTblEntry();
26952724
elseif (MATCH("RANGETBLFUNCTION",16))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp