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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: fc0438b) | patch
Add temporal FOREIGN KEY contraints
2024年9月17日 08:41:07 +0000 (10:41 +0200)
2024年9月17日 09:29:30 +0000 (11:29 +0200)
commit 89f908a6d0ac1337c868625008c9598487d184e7
Add temporal FOREIGN KEY contraints

Add PERIOD clause to foreign key constraint definitions. This is
supported for range and multirange types. Temporal foreign keys check
for range containment instead of equality.

This feature matches the behavior of the SQL standard temporal foreign
keys, but it works on PostgreSQL's native ranges instead of SQL's
"periods", which don't exist in PostgreSQL (yet).

Reference actions ON {UPDATE,DELETE} {CASCADE,SET NULL,SET DEFAULT}
are not supported yet.

(previously committed as 34768ee3616, reverted by 8aee330af55; this is
essentially unchanged from those)

Author: Paul A. Jungwirth <pj@illuminatedcomputing.com>
Reviewed-by: Peter Eisentraut <peter@eisentraut.org>
Reviewed-by: jian he <jian.universality@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/CA+renyUApHgSZF9-nd-a0+OPGharLQLO=mDHcY4_qQ0+noCUVg@mail.gmail.com
16 files changed:
contrib/btree_gist/expected/without_overlaps.out diff | blob | blame | history
contrib/btree_gist/sql/without_overlaps.sql diff | blob | blame | history
doc/src/sgml/catalogs.sgml diff | blob | blame | history
doc/src/sgml/ref/create_table.sgml diff | blob | blame | history
src/backend/catalog/pg_constraint.c diff | blob | blame | history
src/backend/commands/indexcmds.c diff | blob | blame | history
src/backend/commands/tablecmds.c diff | blob | blame | history
src/backend/parser/gram.y diff | blob | blame | history
src/backend/utils/adt/ri_triggers.c diff | blob | blame | history
src/backend/utils/adt/ruleutils.c diff | blob | blame | history
src/include/catalog/pg_constraint.h diff | blob | blame | history
src/include/commands/defrem.h diff | blob | blame | history
src/include/nodes/parsenodes.h diff | blob | blame | history
src/include/parser/kwlist.h diff | blob | blame | history
src/test/regress/expected/without_overlaps.out diff | blob | blame | history
src/test/regress/sql/without_overlaps.sql diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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