pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Matt Andrews <mattandrews@massey.com.au>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Mapping view columns to their source columns
Date: Wed, 25 Sep 2019 10:39:18 -0400
Message-ID: <23237.1569422358@sss.pgh.pa.us> (raw)
In-Reply-To: <CAPeDGQ4dW+EMiYMiAgKfcn4ZYSjt1TVrFYcyZKHfZ1=iwC2g2w@mail.gmail.com>
References: <CAPeDGQ6KrAL8+8myKWorcj02G05otgMrSgOzi9axemaZf=cScA@mail.gmail.com>
	<22840.1569387248@sss.pgh.pa.us>
	<CAPeDGQ4dW+EMiYMiAgKfcn4ZYSjt1TVrFYcyZKHfZ1=iwC2g2w@mail.gmail.com>

Matt Andrews <mattandrews@massey.com.au> writes:
> Incidentally, I have become interested in the pg_node_tree type. I can't
> find much info on it. Would that be in the source? What would be the first
> steps for writing an extension for this sort of thing?

pg_node_tree is just a serialization of the tree-of-Node-structs
representation used inside the server.  See
src/include/nodes/primnodes.h and adjacent files for Node definitions.
The actual serialization code is in src/backend/nodes/outfuncs.c
and adjacent files.

(Beware, however, that there's proposals floating around to change
the serialization format.)

			regards, tom lane





view thread (4+ messages)

Message-ID: <23237.1569422358@sss.pgh.pa.us>
Permalink:  ../23237.1569422358@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/23237.1569422358@sss.pgh.pa.us

 · 

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-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, mattandrews@massey.com.au
  Subject: Re: Mapping view columns to their source columns
  In-Reply-To: <23237.1569422358@sss.pgh.pa.us>
  References: <CAPeDGQ6KrAL8+8myKWorcj02G05otgMrSgOzi9axemaZf=cScA@mail.gmail.com> <22840.1569387248@sss.pgh.pa.us> <CAPeDGQ4dW+EMiYMiAgKfcn4ZYSjt1TVrFYcyZKHfZ1=iwC2g2w@mail.gmail.com> <23237.1569422358@sss.pgh.pa.us>

* 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