提交 30271024 编写于 作者: M Melanie Plageman 提交者: Jesse Zhang

Remove GPDB_84_MERGE_FIXME from outfuncs.c

The pseudocols field was added to RangeTblEntry to avoid duplicates in the
target list. When the field was added, a WRITE_NODE_FIELD was added in
_outRangeTblEntry(), but a corresponding READ_NODE_FIELD was not added in the
_readRangeTblEntry(). Additionally, this field was not added to the readfast
and outfast functions either since this field was not used after the planning
stage and did not have to be dispatched to the QE's.  Later, in
fd6741f9, a corresponding READ_NODE_FIELD was
added along with a FIXME to decide whether or not to serialize/deserialize.
After confirming that this field is not used after planning, we have decided to
remove any serialization/deserialization of the pseudocols member of
RangeTblEntry
The pseudocols member of RangeTblEntry is a list of CdbRelColumnInfo. This
structure was added in the same original commit. An _outCdbRelColumnInfo() was
added for this structure as well. Similarly, no corresponding
_readCdbRelColumnInfo() was added. This data structure is only used for making
pseudocols, so we have also removed the _outCdbRelColumnInfo() function.
Signed-off-by: NAbhijit Subramanya <asubramanya@pivotal.io>
上级 aad8cde8
......@@ -2187,21 +2187,6 @@ _outIndexOptInfo(StringInfo str, IndexOptInfo *node)
}
#endif /* COMPILING_BINARY_FUNCS */
#ifndef COMPILING_BINARY_FUNCS
static void
_outCdbRelColumnInfo(StringInfo str, CdbRelColumnInfo *node)
{
WRITE_NODE_TYPE("CdbRelColumnInfo");
WRITE_INT_FIELD(pseudoattno);
WRITE_INT_FIELD(targetresno);
WRITE_INT_FIELD(attr_width);
WRITE_BITMAPSET_FIELD(where_needed);
WRITE_STRING_FIELD(colname);
WRITE_NODE_FIELD(defexpr);
}
#endif /* COMPILING_BINARY_FUNCS */
#ifndef COMPILING_BINARY_FUNCS
static void
_outEquivalenceClass(StringInfo str, EquivalenceClass *node)
......@@ -3781,9 +3766,6 @@ _outRangeTblEntry(StringInfo str, RangeTblEntry *node)
* pseudocols is intentionally not serialized. It's only used in the planning
* stage, so no need to transfer it to the QEs.
*/
/* GPDB_84_MERGE_FIXME: um, pick either "serialized" or "not serialized".
Then update the fast serialization functions to match. */
WRITE_NODE_FIELD(pseudocols); /*CDB*/
}
#endif /* COMPILING_BINARY_FUNCS */
......@@ -4799,9 +4781,6 @@ _outNode(StringInfo str, void *obj)
case T_IndexOptInfo:
_outIndexOptInfo(str, obj);
break;
case T_CdbRelColumnInfo:
_outCdbRelColumnInfo(str, obj);
break;
case T_EquivalenceClass:
_outEquivalenceClass(str, obj);
break;
......
......@@ -2151,8 +2151,7 @@ _readRangeTblEntry(void)
READ_BITMAPSET_FIELD(modifiedCols);
READ_BOOL_FIELD(forceDistRandom);
READ_NODE_FIELD(pseudocols);
/* 'pseudocols' is intentionally missing, see out function */
READ_DONE();
}
#endif /* COMPILING_BINARY_FUNCS */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册