Commit 286a3a68 authored by Robert Haas's avatar Robert Haas

Fix readfuncs/outfuncs problems in last night's Gather patch.

KaiGai Kohei, with one correction by me.
parent 5884b92a
......@@ -439,8 +439,8 @@ _outGather(StringInfo str, const Gather *node)
_outPlanInfo(str, (const Plan *) node);
WRITE_UINT_FIELD(num_workers);
WRITE_UINT_FIELD(single_copy);
WRITE_INT_FIELD(num_workers);
WRITE_BOOL_FIELD(single_copy);
}
static void
......
......@@ -1998,6 +1998,22 @@ _readUnique(void)
READ_DONE();
}
/*
* _readGather
*/
static Gather *
_readGather(void)
{
READ_LOCALS(Gather);
ReadCommonPlan(&local_node->plan);
READ_INT_FIELD(num_workers);
READ_BOOL_FIELD(single_copy);
READ_DONE();
}
/*
* _readHash
*/
......@@ -2365,6 +2381,8 @@ parseNodeString(void)
return_value = _readWindowAgg();
else if (MATCH("UNIQUE", 6))
return_value = _readUnique();
else if (MATCH("GATHER", 6))
return_value = _readGather();
else if (MATCH("HASH", 4))
return_value = _readHash();
else if (MATCH("SETOP", 5))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment