Use the dependency mechanism to manage column defaults. We need this
Tom Lane <tgl@sss.pgh.pa.us>
Use the dependency mechanism to manage column defaults. We need this so that dependencies in default expressions (on operators, functions, etc) can be expressed properly.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/catalog/dependency.c | modified | +126 −66 |
| src/backend/catalog/heap.c | modified | +152 −46 |
| src/backend/catalog/indexing.c | modified | +3 −3 |
| src/backend/commands/tablecmds.c | modified | +8 −69 |
| src/include/catalog/catversion.h | modified | +2 −2 |
| src/include/catalog/heap.h | modified | +4 −1 |
| src/include/catalog/indexing.h | modified | +7 −3 |
| src/include/catalog/pg_attrdef.h | modified | +5 −1 |