Add attstattarget to FormExtraData_pg_attribute
Peter Eisentraut <peter@eisentraut.org>
Add attstattarget to FormExtraData_pg_attribute This allows setting attstattarget when a relation is created. We make use of this by having index_concurrently_create_copy() copy over the attstattarget values when the new index is created, instead of having index_concurrently_swap() fix it up later. Reviewed-by: Tomas Vondra <tomas.vondra@enterprisedb.com> Discussion: https://www.postgresql.org/message-id/flat/4da8d211-d54d-44b9-9847-f2a9f1184c76@eisentraut.org
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/catalog/heap.c | modified | +4 −1 |
| src/backend/catalog/index.c | modified | +28 −69 |
| src/backend/catalog/toasting.c | modified | +1 −1 |
| src/backend/commands/indexcmds.c | modified | +1 −1 |
| src/include/catalog/index.h | modified | +1 −0 |
| src/include/catalog/pg_attribute.h | modified | +1 −0 |
Discussion
- Make attstattarget nullable 14 messages · 2023-12-05 → 2024-03-17