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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 3694250) | patch
Add system catalog columns pg_constraint.conindid and pg_trigger.tgconstrindid.
2009年7月28日 02:56:31 +0000 (02:56 +0000)
2009年7月28日 02:56:31 +0000 (02:56 +0000)
commit c1b9ec24efb5d576800fb5163acab6bdefb4391c
Add system catalog columns pg_constraint.conindid and pg_trigger.tgconstrindid.

conindid is the index supporting a constraint. We can use this not only for
unique/primary-key constraints, but also foreign-key constraints, which
depend on the unique index that constrains the referenced columns.
tgconstrindid is just copied from the constraint's conindid field, or is
zero for triggers not associated with constraints.

This is mainly intended as infrastructure for upcoming patches, but it has
some virtue in itself, since it exposes a relationship that you formerly
had to grovel in pg_depend to determine. I simplified one information_schema
view accordingly. (There is a pg_dump query that could also use conindid,
but I left it alone because it wasn't clear it'd get any faster.)
15 files changed:
doc/src/sgml/catalogs.sgml diff | blob | blame | history
doc/src/sgml/trigger.sgml diff | blob | blame | history
src/backend/catalog/heap.c diff | blob | blame | history
src/backend/catalog/index.c diff | blob | blame | history
src/backend/catalog/information_schema.sql diff | blob | blame | history
src/backend/catalog/pg_constraint.c diff | blob | blame | history
src/backend/commands/tablecmds.c diff | blob | blame | history
src/backend/commands/trigger.c diff | blob | blame | history
src/backend/commands/typecmds.c diff | blob | blame | history
src/backend/tcop/utility.c diff | blob | blame | history
src/include/catalog/catversion.h diff | blob | blame | history
src/include/catalog/pg_constraint.h diff | blob | blame | history
src/include/catalog/pg_trigger.h diff | blob | blame | history
src/include/commands/trigger.h diff | blob | blame | history
src/include/utils/rel.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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