postgresql/src/backend/utils
Peter Eisentraut 34768ee361 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.

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
2024-03-24 07:37:13 +01:00
..
activity Revert "Add notBefore and notAfter to SSL cert info display" 2024-03-22 22:58:41 +01:00
adt Add temporal FOREIGN KEY contraints 2024-03-24 07:37:13 +01:00
cache Use a hash table for catcache.c's CatCList objects. 2024-03-22 17:13:53 -04:00
error Make the order of the header file includes consistent 2024-03-13 15:07:00 +01:00
fmgr Refactor code checking for file existence 2024-01-12 12:04:51 +09:00
hash Mark hash_corrupted() as pg_attribute_noreturn. 2024-03-17 17:54:45 -04:00
init Refactor postmaster child process launching 2024-03-18 11:35:30 +02:00
mb Make the order of the header file includes consistent 2024-03-13 15:07:00 +01:00
misc Avoid overflow in MaybeRemoveOldWalSummaries(). 2024-03-20 13:31:58 -05:00
mmgr Make the order of the header file includes consistent 2024-03-13 15:07:00 +01:00
resowner Use new overflow-safe integer comparison functions. 2024-02-16 14:05:36 -06:00
sort Make the order of the header file includes consistent 2024-03-13 15:07:00 +01:00
time Remove unused #include's from backend .c files 2024-03-04 12:02:20 +01:00
.gitignore Rearrange makefile rules for running Gen_fmgrtab.pl. 2018-05-03 17:54:18 -04:00
Gen_dummy_probes.pl Update copyright for 2024 2024-01-03 20:49:05 -05:00
Gen_fmgrtab.pl Update copyright for 2024 2024-01-03 20:49:05 -05:00
Makefile Update copyright for 2024 2024-01-03 20:49:05 -05:00
errcodes.txt Introduce transaction_timeout 2024-02-15 23:56:12 +02:00
generate-errcodes.pl Update copyright for 2024 2024-01-03 20:49:05 -05:00
meson.build Update copyright for 2024 2024-01-03 20:49:05 -05:00
postprocess_dtrace.sed Update copyright for 2024 2024-01-03 20:49:05 -05:00
probes.d Update copyright for 2024 2024-01-03 20:49:05 -05:00