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: Move pg_constraint.h function declarations to new file pg_constr
Date: Thu, 11 Feb 2016 20:51:46 +0000
Message-ID: <E1aTyDK-0004Al-Im@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Move pg_constraint.h function declarations to new file pg_constraint_fn.h.

A pending patch requires exporting a function returning Bitmapset from
catalog/pg_constraint.c.  As things stand, that would mean including
nodes/bitmapset.h in pg_constraint.h, which might be hazardous for the
client-side includability of that header.  It's not entirely clear whether
any client-side code needs to include pg_constraint.h, but it seems prudent
to assume that there is some such code somewhere.  Therefore, split off the
function definitions into a new file pg_constraint_fn.h, similarly to what
we've done for some other catalog header files.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/72eee410d48dfb4e6f3a0b751c4b0057ca8adc81

Modified Files
--------------
src/backend/catalog/dependency.c       |  1 +
src/backend/catalog/heap.c             |  1 +
src/backend/catalog/index.c            |  1 +
src/backend/catalog/objectaddress.c    |  1 +
src/backend/catalog/pg_constraint.c    |  1 +
src/backend/commands/tablecmds.c       |  1 +
src/backend/commands/trigger.c         |  1 +
src/backend/commands/typecmds.c        |  1 +
src/backend/parser/parse_agg.c         |  2 +-
src/backend/parser/parse_clause.c      |  2 +-
src/backend/parser/parse_utilcmd.c     |  1 +
src/include/catalog/pg_constraint.h    | 71 +++---------------------------
src/include/catalog/pg_constraint_fn.h | 79 ++++++++++++++++++++++++++++++++++
13 files changed, 97 insertions(+), 66 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: <E1aTyDK-0004Al-Im@gemulon.postgresql.org>
Permalink:  ../E1aTyDK-0004Al-Im@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1aTyDK-0004Al-Im@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: Move pg_constraint.h function declarations to new file pg_constr
  In-Reply-To: <E1aTyDK-0004Al-Im@gemulon.postgresql.org>
  References: <E1aTyDK-0004Al-Im@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