Fix readfuncs/outfuncs problems in last night's Gather patch.
KaiGai Kohei, with one correction by me.
This commit is contained in:
parent
5884b92a84
commit
286a3a68dc
@ -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)
|
|||||||
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)
|
|||||||
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))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user