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

KaiGai Kohei, with one correction by me.
This commit is contained in:
Robert Haas 2015-10-01 09:15:36 -04:00
parent 5884b92a84
commit 286a3a68dc
2 changed files with 20 additions and 2 deletions

View File

@ -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

View File

@ -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))