postgresql/src/backend/catalog
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
..
Catalog.pm Un-break genbki.pl's error reporting capabilities. 2024-03-20 18:02:50 -04:00
Makefile Put genbki.pl output into src/include/catalog/ directly 2024-03-14 07:11:21 +01:00
aclchk.c Reintroduce MAINTAIN privilege and pg_maintain predefined role. 2024-03-13 14:49:26 -05:00
catalog.c Remove unused #include's from backend .c files 2024-03-04 12:02:20 +01:00
dependency.c Remove unused #include's from backend .c files 2024-03-04 12:02:20 +01:00
genbki.pl Generate syscache info from catalog files 2024-01-23 07:31:06 +01:00
heap.c Add attstattarget to FormExtraData_pg_attribute 2024-03-17 12:38:27 +01:00
index.c Add attstattarget to FormExtraData_pg_attribute 2024-03-17 12:38:27 +01:00
indexing.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
information_schema.sql Catalog domain not-null constraints 2024-03-20 10:05:37 +01:00
meson.build Update copyright for 2024 2024-01-03 20:49:05 -05:00
namespace.c Fix search_path to a safe value during maintenance operations. 2024-03-04 17:31:38 -08:00
objectaccess.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
objectaddress.c Remove unused #include's from backend .c files 2024-03-04 12:02:20 +01:00
partition.c Remove unused #include's from backend .c files 2024-03-04 12:02:20 +01:00
pg_aggregate.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
pg_attrdef.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
pg_cast.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
pg_class.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
pg_collation.c Introduce "builtin" collation provider. 2024-03-13 23:33:44 -07:00
pg_constraint.c Add temporal FOREIGN KEY contraints 2024-03-24 07:37:13 +01:00
pg_conversion.c Remove unused #include's from backend .c files 2024-03-04 12:02:20 +01:00
pg_db_role_setting.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
pg_depend.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
pg_enum.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
pg_inherits.c Remove unused #include's from backend .c files 2024-03-04 12:02:20 +01:00
pg_largeobject.c Remove unused #include's from backend .c files 2024-03-04 12:02:20 +01:00
pg_namespace.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
pg_operator.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
pg_parameter_acl.c Remove unused #include's from backend .c files 2024-03-04 12:02:20 +01:00
pg_proc.c Separate equalRowTypes() from equalTupleDescs() 2024-03-17 05:58:04 +01:00
pg_publication.c Make the order of the header file includes consistent 2024-03-13 15:07:00 +01:00
pg_range.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
pg_shdepend.c Remove unused #include's from backend .c files 2024-03-04 12:02:20 +01:00
pg_subscription.c Remove unused #include's from backend .c files 2024-03-04 12:02:20 +01:00
pg_type.c Explicitly list dependent types as extension members in pg_depend. 2024-03-04 14:49:36 -05:00
sql_feature_packages.txt Update SQL features 2023-05-02 10:59:21 +02:00
sql_features.txt Add SQL/JSON query functions 2024-03-21 17:07:03 +09:00
storage.c Remove unused #include's from backend .c files 2024-03-04 12:02:20 +01:00
system_functions.sql Allow pg_monitor to execute pg_current_logfile(). 2024-02-14 11:48:29 -06:00
system_views.sql Revert "Add notBefore and notAfter to SSL cert info display" 2024-03-22 22:58:41 +01:00
toasting.c Add attstattarget to FormExtraData_pg_attribute 2024-03-17 12:38:27 +01:00