Not-null constraints
Catalogued, named NOT NULL constraints with inheritance, NO INHERIT and NOT VALID support.
Versions
- PostgreSQL 20 · in-development · improved · minor · 1 commit · +2 / -2 lines
- PostgreSQL 19 · shipped · improved · minor · 1 commit · +12 / -5 lines
- PostgreSQL 18 · shipped · new · major · 11 commits · +6.1k / -1.1k lines
- PostgreSQL 17 · reverted · new · major · 15 commits · +1.1k / -245 lines
- PostgreSQL 16 · reverted · new · major · 3 commits · +2.9k / -648 lines
Threads
- Re: BUG #19928: pg_upgrade fails on v18 schema with NOT NULL ... NO INHERIT and inheritance
- BUG #19928: pg_upgrade fails on v18 schema with NOT NULL ... NO INHERIT and inheritance
- Adjust error message to reflect the inheritance relationship
- using index to speedup add not null constraints to a table
- BUG #19808: NOT NULL NO INHERIT copied by CREATE TABLE (LIKE) not enforced on partitioned table
- BUG #19846: dump/restore marks inherited NOT VALID not-null constraint as local
- ALTER COLUMN SET NOT NULL differ from ALTER TABLE ADD CONSTRAINT
- [PG19] NOT NULL constraint is trusted by snapshots older than it
- [PATCH v1] Fix for bug #19770 : Reject NO INHERIT not-null constraints copied by LIKE to partitioned tables
- BUG #19770: CREATE TABLE (LIKE ...) PARTITION BY copies a NO INHERIT not-null constraint; NULLs then go into par
- BUG #19698: IMPORT FOREIGN SCHEMA treats a NOT VALID NOT NULL constraint as validated
- 42P16 error when dropping and adding column
- pg_dump: fix NOT NULL constraint name comparison using makeObjectName
- [PATCH] REPLICA IDENTITY USING INDEX accepts column with invalid NOT NULL
- question about is_valid parameter in set_attnotnull
- Reject ADD CONSTRAINT NOT NULL if name mismatches existing domain not-null constraint
- Doc error re: "not null" "not valid"
- [PATCH] psql: add \dcs to list all constraints
- Pg upgrade bug with NOT NULL NOT VALID
- Prevent setting NO INHERIT on partitioned not-null constraints
- The CREATE TABLE documentation groups NOT NULL under table_constraint.
- BUG #19444: conkey field empty for domain NOT NULL constraint in pg_constraint (18.3)
- Order of InvokeObjectPostAlterHook within ATExecSetNotNull
- Fix array access (src/bin/pg_dump/pg_dump.c)
- [BUG?] missing array index may result in a wrong constraint name (pg_dump, bin-upgrade, >=18)
- ALTER DOMAIN ADD NOT NULL NOT VALID
- persevere NO INHERIT when Dump not-null constraints on inherited columns
- BUG #19393: pg_upgrade fails with duplicate key violation when CHECK constraint named *_not_null exists
- BUG #19351: in pg18.1,when not null exists in the table , and add constraint problem.
- refactor AlterDomainAddConstraint (alter domain add constraint)
- fix NOT VALID NOT NULL with ALTER COLUMN SET IDENTITY
- BUG #19074: pg_dump from v18 loses the NOT NULL flag in the inherited table field when dumping v17-databases
- pg_dump does not dump domain not-null constraint's comments
- UPDATE with invalid domain constraint
- BUG #19024: Error when trying to use pg_dump of new server on old server
- further clarification: alter table alter column set not null - table scan is skipped
- pg_upgrade failed with error - ERROR: column "a" in child table must be marked NOT NULL
- Add tab-completion for ALTER TABLE ADD NOT NULL
- add tab-complete for ALTER DOMAIN ADD...
- CREATE DOMAIN create two not null constraints
- pg_dump misses comments on NOT NULL constraints
- doc pg_constraint.convalidated column description need update
- Valgrind - showing memory leaks
- Support NOT VALID / VALIDATE constraint options for named NOT NULL constraints
- not null constraints, again
- pgsql: Allow NOT NULL constraints to be added as NOT VALID
- two occurrences of assign print_notnull within pg_dump.c
- simplifying grammar for ALTER CONSTRAINT .. SET [NO] INHERIT
- Support for NO INHERIT to INHERIT state change with named NOT NULL constraints
- pg_get_constraintdef throws SQL Error [XX000]: ERROR: invalid constraint type "n" (PG17)
- Difference in dump from original and restored database due to NOT NULL constraints on children
- invalid constraint type "n" when using pg_catalog.pg_get_constraintdef() on pg17, regression from pg16
- Function pg_get_constraintdef
- Proposal: Support for "NOT NULL" Constraints on Composite Type Fields (Checked at Rest)
- incorrect (incomplete) description for "alter domain"
- overflow bug for inhcounts
- cataloguing NOT NULL constraints
- CREATE TABLE/ProcessUtility hook behavior change
- Dump-restore loosing 'attnotnull' bit for DEFERRABLE PRIMARY KEY column(s).
- pg17 issues with not-null contraints
- pgsql: Fix restore of not-null constraints with inheritance
- Can't find not null constraint, but \d+ shows that
- Catalog domain not-null constraints
- BUG #18405: flaw in dump of inherited/dropped constraints
- PostgreSQL domains and NOT NULL constraint
- odd behaviour with serial, non null and partitioned table
- information_schema and not-null constraints
- missing privilege check after not-null constraint rework
- Assert failure in ATPrepAddPrimaryKey
- Strange presentaion related to inheritance in \d+
- ERROR: no NOT NULL constraint found to drop
- ATExecAddColumn() doesn't merge inherited properties
- should all not-null constraints be inherited?
- using index or check in ALTER TABLE SET NOT NULL
- Proposal : composite type not null constraints
- Prevent ALTER TABLE DROP NOT NULL on child tables if parent column has it
- Make PG's "NOT NULL"s and attnotnull ("is_nullable") conform to SQL-2011
- cataloguing NOT NULL constraints
- cataloguing NOT NULL constraints
- starting to review the Extend NOT NULL representation to pg_constraint patch
- ALTER TABLE...ALTER COLUMN vs inheritance