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: Replace enum InhOption with simple boolean.
Date: Fri, 23 Dec 2016 18:35:43 +0000
Message-ID: <E1cKUgx-0002U1-GL@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Replace enum InhOption with simple boolean.

Now that it has only INH_NO and INH_YES values, it's just weird that
it's not a plain bool, so make it that way.

Also rename RangeVar.inhOpt to "inh", to be like RangeTblEntry.inh.
My recollection is that we gave it a different name specifically because
it had a different representation than the derived bool value, but it
no longer does.  And this is a good forcing function to be sure we
catch any places that are affected by the change.

Bump catversion because of possible effect on stored RangeVar nodes.
I'm not exactly convinced that we ever store RangeVar on disk, but
we have a readfuncs function for it, so be cautious.  (If we do do so,
then commit e13486eba was in error not to bump catversion.)

Follow-on to commit e13486eba.

Discussion: http://postgr.es/m/CA+TgmoYe+EG7LdYX6pkcNxr4ygkP4+A=jm9o-CPXyOvRiCNwaQ@mail.gmail.com

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/fe591f8bf68db9bf81f278acce6239ee68cd4ed6

Modified Files
--------------
src/backend/commands/lockcmds.c   |  2 +-
src/backend/commands/tablecmds.c  | 11 +++++------
src/backend/nodes/copyfuncs.c     |  3 +--
src/backend/nodes/equalfuncs.c    |  2 +-
src/backend/nodes/makefuncs.c     |  2 +-
src/backend/nodes/outfuncs.c      |  2 +-
src/backend/nodes/readfuncs.c     |  2 +-
src/backend/parser/analyze.c      |  4 ++--
src/backend/parser/gram.y         | 10 +++++-----
src/backend/parser/parse_clause.c |  3 +--
src/include/catalog/catversion.h  |  2 +-
src/include/nodes/primnodes.h     | 10 ++--------
12 files changed, 22 insertions(+), 31 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: <E1cKUgx-0002U1-GL@gemulon.postgresql.org>
Permalink:  ../E1cKUgx-0002U1-GL@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1cKUgx-0002U1-GL@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: Replace enum InhOption with simple boolean.
  In-Reply-To: <E1cKUgx-0002U1-GL@gemulon.postgresql.org>
  References: <E1cKUgx-0002U1-GL@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