diff options
author | Robert Haas <rhaas@postgresql.org> | 2016-03-29 15:04:05 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2016-03-29 15:04:05 -0400 |
commit | 5fe5a2cee91117673e04617aeb1a38e305dcd783 (patch) | |
tree | 191e937efe0f15daf02c921935d740f429decada /src/backend/nodes/copyfuncs.c | |
parent | 7f0a2c85fb221bae6908fb2fddad21a4c6d14438 (diff) | |
download | postgresql-5fe5a2cee91117673e04617aeb1a38e305dcd783.tar.gz postgresql-5fe5a2cee91117673e04617aeb1a38e305dcd783.zip |
Allow aggregate transition states to be serialized and deserialized.
This is necessary infrastructure for supporting parallel aggregation
for aggregates whose transition type is "internal". Such values
can't be passed between cooperating processes, because they are
just pointers.
David Rowley, reviewed by Tomas Vondra and by me.
Diffstat (limited to 'src/backend/nodes/copyfuncs.c')
-rw-r--r-- | src/backend/nodes/copyfuncs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/backend/nodes/copyfuncs.c b/src/backend/nodes/copyfuncs.c index 6378db8bbea..f4e4a91ba53 100644 --- a/src/backend/nodes/copyfuncs.c +++ b/src/backend/nodes/copyfuncs.c @@ -871,6 +871,7 @@ _copyAgg(const Agg *from) COPY_SCALAR_FIELD(aggstrategy); COPY_SCALAR_FIELD(combineStates); COPY_SCALAR_FIELD(finalizeAggs); + COPY_SCALAR_FIELD(serialStates); COPY_SCALAR_FIELD(numCols); if (from->numCols > 0) { |