git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 0080396) | patch
Move CloneForeignKeyConstraints to tablecmds.c
2019年1月18日 17:49:27 +0000 (14:49 -0300)
2019年1月18日 18:00:06 +0000 (15:00 -0300)
commit 03afae201f0a0762bb66cf02e038ed0d982ad048
Move CloneForeignKeyConstraints to tablecmds.c

My commit 3de241dba86f introduced some code to create a clone of a
foreign key to a partition, but I put it in pg_constraint.c because it
was too close to the contents of the pg_constraint row. With the
previous commit that split out the constraint tuple deconstruction into
its own routine, it makes more sense to have the FK-cloning function in
tablecmds.c, mostly because its static subroutine can then be used by a
future bugfix.

My initial posting of this patch had this routine as static in
tablecmds.c, but sadly this function is already part of the Postgres 11
ABI as exported from pg_constraint.c, so keep it as exported also just
to avoid breaking any possible users of it.
src/backend/catalog/pg_constraint.c diff | blob | blame | history
src/backend/commands/tablecmds.c diff | blob | blame | history
src/include/catalog/pg_constraint.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /