From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@postgresql.org
Subject: pgsql: Introduce extensible node types.
Date: Fri, 12 Feb 2016 14:38:27 +0000
Message-ID: <E1aUErb-00045e-NP@gemulon.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
Introduce extensible node types.
An extensible node is always tagged T_Extensible, but the extnodename
field identifies it more specifically; it may also include arbitrary
private data. Extensible nodes can be copied, tested for equality,
serialized, and deserialized, but the core system doesn't know
anything about them otherwise. Some extensions may find it useful to
include these nodes in fdw_private or custom_private lists in lieu of
arm-wrestling their data into a format that the core code can
understand.
Along the way, so as not to burden the authors of such extensible
node types too much, expose the functions for writing serialized
tokens, and for serializing and deserializing bitmapsets.
KaiGai Kohei, per a design suggested by me. Reviewed by Andres Freund
and by me, and further edited by me.
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/bcac23de73b89b001fbc628d84471a392e928d1c
Modified Files
--------------
src/backend/nodes/Makefile | 2 +-
src/backend/nodes/copyfuncs.c | 29 +++++++++++++
src/backend/nodes/equalfuncs.c | 27 +++++++++++++
src/backend/nodes/extensible.c | 92 ++++++++++++++++++++++++++++++++++++++++++
src/backend/nodes/outfuncs.c | 40 ++++++++++++++++++
src/backend/nodes/readfuncs.c | 40 ++++++++++++++++++
src/include/nodes/extensible.h | 72 +++++++++++++++++++++++++++++++++
src/include/nodes/nodes.h | 12 ++++++
8 files changed, 313 insertions(+), 1 deletion(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
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: Introduce extensible node types.
In-Reply-To: <E1aUErb-00045e-NP@gemulon.postgresql.org>
References: <E1aUErb-00045e-NP@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