pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@postgresql.org
Subject: pgsql: Allow aggregate transition states to be serialized and deseriali
Date: Tue, 29 Mar 2016 19:10:56 +0000
Message-ID: <E1akz2W-0007DM-Mu@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/5fe5a2cee91117673e04617aeb1a38e305dcd783

Modified Files
--------------
doc/src/sgml/catalogs.sgml              |  18 ++
doc/src/sgml/ref/create_aggregate.sgml  |  50 +++++
src/backend/catalog/pg_aggregate.c      |  80 +++++++-
src/backend/commands/aggregatecmds.c    |  82 +++++++++
src/backend/executor/nodeAgg.c          | 273 +++++++++++++++++++++++++--
src/backend/nodes/copyfuncs.c           |   1 +
src/backend/nodes/outfuncs.c            |   1 +
src/backend/nodes/readfuncs.c           |   1 +
src/backend/optimizer/plan/createplan.c |   7 +-
src/backend/optimizer/plan/planner.c    |  17 +-
src/backend/optimizer/plan/setrefs.c    |   8 +-
src/backend/optimizer/prep/prepunion.c  |   3 +-
src/backend/optimizer/util/clauses.c    |  12 +-
src/backend/optimizer/util/pathnode.c   |   4 +-
src/backend/optimizer/util/tlist.c      |  11 +-
src/backend/parser/parse_agg.c          |  39 ++++
src/bin/pg_dump/pg_dump.c               |  50 ++++-
src/include/catalog/catversion.h        |   2 +-
src/include/catalog/pg_aggregate.h      | 314 +++++++++++++++++---------------
src/include/nodes/execnodes.h           |   1 +
src/include/nodes/plannodes.h           |   1 +
src/include/nodes/relation.h            |   1 +
src/include/optimizer/pathnode.h        |   3 +-
src/include/optimizer/planmain.h        |   2 +-
src/include/parser/parse_agg.h          |   6 +
25 files changed, 794 insertions(+), 193 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


Message-ID: <E1akz2W-0007DM-Mu@gemulon.postgresql.org>
Permalink:  ../E1akz2W-0007DM-Mu@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1akz2W-0007DM-Mu@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: rhaas@postgresql.org
  Subject: Re: pgsql: Allow aggregate transition states to be serialized and deseriali
  In-Reply-To: <E1akz2W-0007DM-Mu@gemulon.postgresql.org>
  References: <E1akz2W-0007DM-Mu@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox