Move pg_constraint.h function declarations to new file pg_constraint_fn.h.
Tom Lane <tgl@sss.pgh.pa.us>
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.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/catalog/dependency.c | modified | +1 −0 |
| src/backend/catalog/heap.c | modified | +1 −0 |
| src/backend/catalog/index.c | modified | +1 −0 |
| src/backend/catalog/objectaddress.c | modified | +1 −0 |
| src/backend/catalog/pg_constraint.c | modified | +1 −0 |
| src/backend/commands/tablecmds.c | modified | +1 −0 |
| src/backend/commands/trigger.c | modified | +1 −0 |
| src/backend/commands/typecmds.c | modified | +1 −0 |
| src/backend/parser/parse_agg.c | modified | +1 −1 |
| src/backend/parser/parse_clause.c | modified | +1 −1 |
| src/backend/parser/parse_utilcmd.c | modified | +1 −0 |
| src/include/catalog/pg_constraint_fn.h | added | +79 −0 |
| src/include/catalog/pg_constraint.h | modified | +7 −64 |