From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@postgresql.org
Subject: pgsql: Simplify and encapsulate tuple routing support code.
Date: Thu, 04 Jan 2018 20:55:06 +0000
Message-ID: <E1eXCXa-0000V9-HN@gemulon.postgresql.org> (raw)
Simplify and encapsulate tuple routing support code.
Instead of having ExecSetupPartitionTupleRouting return multiple out
parameters, have it return a pointer to a structure containing all of
those different things. Also, provide and use a cleanup function,
ExecCleanupTupleRouting, instead of cleaning up all of the resources
allocated by ExecSetupPartitionTupleRouting individually.
Amit Khandekar, reviewed by Amit Langote, David Rowley, and me
Discussion: http://postgr.es/m/CAJ3gD9fWfxgKC+PfJZF3hkgAcNOy-LpfPxVYitDEXKHjeieWQQ@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/cc6337d2fed598d4b5ac54d9a62708182b83a81e
Modified Files
--------------
src/backend/commands/copy.c | 86 ++++++--------------------
src/backend/executor/execPartition.c | 108 ++++++++++++++++++++-------------
src/backend/executor/nodeModifyTable.c | 94 +++++++++-------------------
src/include/executor/execPartition.h | 47 +++++++++++---
src/include/nodes/execnodes.h | 9 +--
5 files changed, 154 insertions(+), 190 deletions(-)
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: Simplify and encapsulate tuple routing support code.
In-Reply-To: <E1eXCXa-0000V9-HN@gemulon.postgresql.org>
References: <E1eXCXa-0000V9-HN@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