Remove unnecessary code to handle CONSTR_NOTNULL
Álvaro Herrera <alvherre@alvh.no-ip.org>
Remove unnecessary code to handle CONSTR_NOTNULL Commit 14e87ffa5c54 needlessly added support for CONSTR_NOTNULL entries to StoreConstraints. It's dead code, so remove it. To make the situation regarding constraint creation clearer, change comments in heap_create_with_catalog, StoreConstraints, MergeAttributes to explain which types of constraint are used on each. Author: 何建 (Jian He) <jian.universality@gmail.com> Discussion: https://postgr.es/m/CACJufxFxzqrCiUNfjJ0tQU+=nKQkQCGtGzUBude=SMOwj5VNjQ@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/catalog/heap.c | modified | +3 −10 |
| src/backend/commands/tablecmds.c | modified | +8 −7 |
Discussion
- not null constraints, again 89 messages · 2024-08-31 → 2025-04-17