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) ...@@ -439,8 +439,8 @@ _outGather(StringInfo str, const Gather *node)
_outPlanInfo(str, (const Plan *) node); _outPlanInfo(str, (const Plan *) node);
WRITE_UINT_FIELD(num_workers); WRITE_INT_FIELD(num_workers);
WRITE_UINT_FIELD(single_copy); WRITE_BOOL_FIELD(single_copy);
} }
static void static void
......
...@@ -1998,6 +1998,22 @@ _readUnique(void) ...@@ -1998,6 +1998,22 @@ _readUnique(void)
READ_DONE(); 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 * _readHash
*/ */
...@@ -2365,6 +2381,8 @@ parseNodeString(void) ...@@ -2365,6 +2381,8 @@ parseNodeString(void)
return_value = _readWindowAgg(); return_value = _readWindowAgg();
else if (MATCH("UNIQUE", 6)) else if (MATCH("UNIQUE", 6))
return_value = _readUnique(); return_value = _readUnique();
else if (MATCH("GATHER", 6))
return_value = _readGather();
else if (MATCH("HASH", 4)) else if (MATCH("HASH", 4))
return_value = _readHash(); return_value = _readHash();
else if (MATCH("SETOP", 5)) 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