pg_inplace_update_am
pg_inplace_update_am · In-place row updates with undo, iheap table storage and delete-marking B-tree indexes.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 102256 | pg_inplace_update_am | pg_inplace_update_am | 0.1 | FEAT | PostgreSQL | C |
Usage
Sources:
pg_inplace_update_am 0.1 provides the iheap table access method and dmbtree index access method on unmodified PostgreSQL 19. Rows can be updated in place while undo records retain older versions for snapshots and rollback. This is early-development storage code; qualify recovery, replication and upgrades before using it with important data.
Enable and Use
A superuser must preload the module and restart PostgreSQL to register its WAL resource managers:
Then install the SQL objects in the target database:
The ordinary index above defaults to dmbtree; primary keys and unique indexes default to btree. Changing an indexed column can stay in place with dmbtree; ordinary btree indexes require moving that row.
Settings and Inspection
iheap.enable_inplaceenables in-place updates; disabling it moves each updated row.iheap.default_index_amdefaults todmbtree;iheap.unique_index_amdefaults tobtree.iheap.foreground_undo_limitdefaults to 1024 kB. Larger aborts leave work for later accesses and VACUUM.iheap.logical_decodingdefaults toon;ignoreskips these tables’ changes during decoding.iheap_relation_stats,iheap_metapage_infoanddmbtree_index_statsinspect storage;iheap_check,dmbtree_checkanddmbtree_parent_checkverify it.iheap_stat_tablesexposes statistics.iheap_discardremoves undo no snapshot still needs;dmbtree_copy_btree_opclassescopies B-tree operator classes added after installation.
Most raw inspection, verification and maintenance functions have public execution revoked by the installation SQL. Keep undo cleanup and VACUUM in the operational plan; the existence of upstream test suites is not a production-readiness guarantee.