Fast default
ALTER TABLE ADD COLUMN with a non-volatile default without rewriting the table, using attmissingval. Introduced in PostgreSQL 11.
Versions
- PostgreSQL 20 · worked-on · improved · moderate
- PostgreSQL 19 · shipped · improved · moderate · 2 commits · +222 / -27 lines
- PostgreSQL 18 · worked-on · improved · moderate
Threads
- Rework: Enable fast default for domains with non-volatile constraints
- {heap,minimal}_expand_tuple() are unused
- Fix domain fast defaults on empty tables
- AT_AddColumn container/composite type over constrained domain should table rewrite
- support fast default for domain with constraints
- bug when apply fast default mechanism for adding new column over domain with default value
- BUG #17994: Invalidating relcache corrupts tupDesc inside ExecEvalFieldStoreDeForm()
- Document atthasmissing default optimization avoids verification table scan
- Overflow of attmissingval is not handled gracefully
- Patch for bug #17056 fast default on non-plain table
- BUG #17056: Segmentation fault on altering the type of the foreign table column with a default
- ALTER TABLE ADD COLUMN fast default
- debian bugrept involving fast default crash in pg11.7
- BUG #16644: null value for defaults in OLD variable for trigger
- BUG #16242: convert_tuple_* not handling missing values correctly
- BUG #16087: Segmentation fault on ALTER TABLE
- BUG #16038: Alter table - SegFault
- Documentation fix for adding a column with a default value
- Outdated tip in the "Adding a column section"
- fast defaults in heap_getattr vs heap_deform_tuple
- BUG #15579: Adding a column with default from configuration parameter fails on 11.1
- Alter table says rewrite is required for default values on 11.
- fast default vs triggers
- Few cosmetic suggestions for commit 16828d5c (Fast Alter Table Add Column...)
- Fast default stuff versus pg_upgrade
- BUG #15247: At 'ALTER TABLE ADD COLUMN fast default' , Set attmissingval to NULL in the pg_attribute, query fail
- BUG #15113: alter table .. add column .. default null leads to table rewrite