Allow table AM to store complex data structures in rd_amcache
Alexander Korotkov <akorotkov@postgresql.org>
Allow table AM to store complex data structures in rd_amcache The new table AM method free_rd_amcache is responsible for freeing all the memory related to rd_amcache and setting free_rd_amcache to NULL. If the new method is not specified, we still assume rd_amcache to be a single chunk of memory, which could be just pfree'd. Discussion: https://postgr.es/m/CAPpHfdurb9ycV8udYqM%3Do0sPS66PJ4RCBM1g-bBpvzUfogY0EA%40mail.gmail.com Reviewed-by: Matthias van de Meent, Mark Dilger, Pavel Borisov Reviewed-by: Nikita Malakhov, Japin Li
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/heap/heapam_handler.c | modified | +1 −0 |
| src/backend/utils/cache/relcache.c | modified | +3 −8 |
| src/include/access/tableam.h | modified | +34 −0 |
| src/include/utils/rel.h | modified | +6 −4 |
Discussion
- Table AM Interface Enhancements 104 messages · 2023-11-23 → 2024-06-22