postgresql/src/include
Peter Eisentraut ca87c415e2 Add support for NOT ENFORCED in CHECK constraints
This adds support for the NOT ENFORCED/ENFORCED flag for constraints,
with support for check constraints.

The plan is to eventually support this for foreign key constraints,
where it is typically more useful.

Note that CHECK constraints do not currently support ALTER operations,
so changing the enforceability of an existing constraint isn't
possible without dropping and recreating it.  This could be added
later.

Author: Amul Sul <amul.sul@enterprisedb.com>
Reviewed-by: Peter Eisentraut <peter@eisentraut.org>
Reviewed-by: jian he <jian.universality@gmail.com>
Tested-by: Triveni N <triveni.n@enterprisedb.com>
Discussion: https://www.postgresql.org/message-id/flat/CAAJ_b962c5AcYW9KUt_R_ER5qs3fUGbe4az-SP-vuwPS-w-AGA@mail.gmail.com
2025-01-11 10:52:30 +01:00
..
access Add support for NOT ENFORCED in CHECK constraints 2025-01-11 10:52:30 +01:00
archive Update copyright for 2025 2025-01-01 11:21:55 -05:00
backup Update copyright for 2025 2025-01-01 11:21:55 -05:00
bootstrap Update copyright for 2025 2025-01-01 11:21:55 -05:00
catalog Add support for NOT ENFORCED in CHECK constraints 2025-01-11 10:52:30 +01:00
commands Adjust signature of cluster_rel() and its subroutines 2025-01-10 13:09:38 +01:00
common Update copyright for 2025 2025-01-01 11:21:55 -05:00
datatype Update copyright for 2025 2025-01-01 11:21:55 -05:00
executor TupleHashTable: store additional data along with tuple. 2025-01-10 17:14:37 -08:00
fe_utils Update copyright for 2025 2025-01-01 11:21:55 -05:00
foreign Update copyright for 2025 2025-01-01 11:21:55 -05:00
jit Fix an assortment of spelling mistakes and typos 2025-01-02 12:42:01 +13:00
lib Add new StringInfo APIs to allow callers to specify the buffer size. 2025-01-11 08:23:46 +09:00
libpq Update copyright for 2025 2025-01-01 11:21:55 -05:00
mb Update copyright for 2025 2025-01-01 11:21:55 -05:00
nodes Add support for NOT ENFORCED in CHECK constraints 2025-01-11 10:52:30 +01:00
optimizer Update copyright for 2025 2025-01-01 11:21:55 -05:00
parser Add support for NOT ENFORCED in CHECK constraints 2025-01-11 10:52:30 +01:00
partitioning Update copyright for 2025 2025-01-01 11:21:55 -05:00
pch Update copyright for 2025 2025-01-01 11:21:55 -05:00
port Provide 64-bit ftruncate() and lseek() on Windows. 2025-01-09 15:00:58 +13:00
portability Update copyright for 2025 2025-01-01 11:21:55 -05:00
postmaster Allow changing autovacuum_max_workers without restarting. 2025-01-06 15:01:22 -06:00
regex Update copyright for 2025 2025-01-01 11:21:55 -05:00
replication Update copyright for 2025 2025-01-01 11:21:55 -05:00
rewrite Update copyright for 2025 2025-01-01 11:21:55 -05:00
snowball Update copyright for 2025 2025-01-01 11:21:55 -05:00
statistics Update copyright for 2025 2025-01-01 11:21:55 -05:00
storage Use a non-locking initial test in TAS_SPIN on AArch64. 2025-01-10 13:18:04 -06:00
tcop Update copyright for 2025 2025-01-01 11:21:55 -05:00
tsearch Update copyright for 2025 2025-01-01 11:21:55 -05:00
utils Refactor some code related to backend statistics 2025-01-10 09:00:48 +09:00
.gitignore Use <stdint.h> and <inttypes.h> for c.h integers. 2024-12-04 15:05:38 +13:00
c.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
fmgr.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
funcapi.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
getopt_long.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
Makefile Use <stdint.h> and <inttypes.h> for c.h integers. 2024-12-04 15:05:38 +13:00
meson.build Update copyright for 2025 2025-01-01 11:21:55 -05:00
miscadmin.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
pg_config.h.in Use <stdint.h> and <inttypes.h> for c.h integers. 2024-12-04 15:05:38 +13:00
pg_config_manual.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
pg_getopt.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
pg_trace.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
pgstat.h Merge pgstat_count_io_op_n() and pgstat_count_io_op() 2025-01-10 09:57:27 +09:00
pgtar.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
pgtime.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
port.h Provide 64-bit ftruncate() and lseek() on Windows. 2025-01-09 15:00:58 +13:00
postgres.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
postgres_ext.h Use <stdint.h> and <inttypes.h> for c.h integers. 2024-12-04 15:05:38 +13:00
postgres_fe.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
varatt.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
windowapi.h Update copyright for 2025 2025-01-01 11:21:55 -05:00