heapy
table AM for Yezzey
heapy · table AM for Yezzey
Overview
Usage
Sources:
- Official upstream README
- Official extension control file (heapy.control)
- Official extension SQL (heapy–1.0.sql)
heapy — The Heap Only Tuple (HOT) feature eliminates redundant index entries and allows the re-use of space taken by DELETEd or obsoleted UPDATEd tuples without performing a table-wide vacuum. It does this by allowing single-page vacuuming, also called “defragmentation”. Use it for the corresponding analytical or storage workflow. Use the pinned upstream revision linked above as the API boundary and test it on the target PostgreSQL build.
Core Workflow
Install the extension in the intended database, run the smallest upstream example above when available, and verify the installed version and returned values before integrating it into application SQL.
Important Objects
heapy_define_relation_offload_policy_internal(reloid OID)is an extension function and returnsvoid.heapy_define_relation_offload_policy_internal_seg(reloid OID)is an extension function and returnsvoid.heapy_tableam_handler(internal)is an extension function and returnstable_am_handler.heapyis an extension-defined access method.
Requirements and Caveats
- The reviewed control file declares default version
1.0. - The control file marks the extension as relocatable.
- Confirm privileges, supported PostgreSQL versions, upgrade behavior, and failure cases against the pinned source before production use.