pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@postgresql.org
Subject: pgsql: Clean up handling of dropped columns in NAMEDTUPLESTORE RTEs.
Date: Wed, 06 Sep 2017 14:41:15 +0000
Message-ID: <E1dpbVz-0006y9-3f@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Clean up handling of dropped columns in NAMEDTUPLESTORE RTEs.

The NAMEDTUPLESTORE patch piggybacked on the infrastructure for
TABLEFUNC/VALUES/CTE RTEs, none of which can ever have dropped columns,
so the possibility was ignored most places.  Fix that, including adding a
specification to parsenodes.h about what it's supposed to look like.

In passing, clean up assorted comments that hadn't been maintained
properly by said patch.

Per bug #14799 from Philippe Beaudoin.  Back-patch to v10.

Discussion: https://postgr.es/m/20170906120005.25630.84360@wrigleys.postgresql.org

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/483882905a9a5dc72c9487ceee12320b9630ba2b

Modified Files
--------------
src/backend/optimizer/util/relnode.c |   4 +-
src/backend/parser/parse_relation.c  | 103 +++++++++++++++++++++++------------
src/backend/parser/parse_target.c    |   4 +-
src/backend/utils/adt/ruleutils.c    |   4 +-
src/include/nodes/parsenodes.h       |   5 ++
5 files changed, 79 insertions(+), 41 deletions(-)


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


view thread (2+ messages)  latest in thread

Message-ID: <E1dpbVz-0006y9-3f@gemulon.postgresql.org>
Permalink:  ../E1dpbVz-0006y9-3f@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1dpbVz-0006y9-3f@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: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Clean up handling of dropped columns in NAMEDTUPLESTORE RTEs.
  In-Reply-To: <E1dpbVz-0006y9-3f@gemulon.postgresql.org>
  References: <E1dpbVz-0006y9-3f@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