shardman
Experimental sharding, rebalance, and cross-node lock-graph prototype
shardman · Experimental sharding, rebalance, and cross-node lock-graph prototype
Overview
Usage
Sources:
- Official upstream README
- Official extension control file (shardman.control)
- Official extension SQL (shardman–0.0.1.sql)
shardman — Experimental sharding, rebalance, and cross-node lock-graph prototype. 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
bcst_all_sql(cmd text)is an extension function and returnsvoid.bcst_sql(cmd text)is an extension function and returnsvoid.deny_access()is an extension function and returnstrigger.drop_repslot(slot_name text, with_force bool default true)is an extension function and returnsvoid.eliminate_sub(subname name)is an extension function and returnsvoid.ex_sql(rgid int, cmd text)is an extension function and returnsvoid.hash_shard_table(relid regclass, nparts int, colocate_with regclass = null)is an extension function and returnsvoid.is_subscription_ready(sname text)is an extension function.part_moved(relid regclass, pnum int, src_rgid int, dst_rgid int)is an extension function and returnsvoid.postgres_fdw_handler()is an extension function and returnsfdw_handler.postgres_fdw_validator(text[], oid)is an extension function and returnsvoid.rebalance_cleanup()is an extension function and returnsvoid.rebalance_cleanup_local()is an extension function and returnsvoid.restore_foreign_tables()is an extension function and returnsvoid.
Requirements and Caveats
- The reviewed control file declares default version
0.0.1. - The control file marks the extension as non-relocatable.
- Confirm privileges, supported PostgreSQL versions, upgrade behavior, and failure cases against the pinned source before production use.