mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-30 19:00:29 +08:00
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);
|
||||
|
||||
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))
|
||||
|
Loading…
Reference in New Issue
Block a user