Replace the usage of heap_addheader to create pg_attribute tuples with regular
Alvaro Herrera <alvherre@alvh.no-ip.org>
Replace the usage of heap_addheader to create pg_attribute tuples with regular heap_form_tuple. Since this removes the last remaining caller of heap_addheader, remove it. Extracted from the column privileges patch from Stephen Frost, with further code cleanups by me.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/common/heaptuple.c | modified | +1 −54 |
| src/backend/catalog/heap.c | modified | +79 −51 |
| src/backend/catalog/index.c | modified | +2 −12 |
| src/backend/commands/tablecmds.c | modified | +24 −36 |
| src/include/access/htup.h | modified | +1 −3 |
| src/include/catalog/heap.h | modified | +6 −1 |