From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Move pg_constraint.h function declarations to new file pg_constr |
Date: | 2016-02-11 20:51:46 |
Message-ID: | E1aTyDK-0004Al-Im@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-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(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2016-02-11 22:35:07 | pgsql: Remove GROUP BY columns that are functionally dependent on other |
Previous Message | Tom Lane | 2016-02-11 20:20:22 | pgsql: Fix typo in comment. |