alohadb_branch
Lightweight database branching for testing migrations and experiments
alohadb_branch · Lightweight database branching for testing migrations and experiments
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 101271 | alohadb_branch | alohadb_branch | 1.0 | FEAT | MIT | C |
Usage
Sources:
- Official upstream README
- Official extension control file (alohadb_branch.control)
- Official extension SQL (alohadb_branch–1.0.sql)
alohadb_branch — Lightweight database branching for testing migrations and experiments. Use it when an application needs this specific database capability. Upstream describes this capability as experimental.
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
alohadb_create_branch(name text, from_lsn pg_lsn DEFAULT NULL, OUT branch_name text, OUT port int, OUT data_dir text)is an extension function and returnsrecord.alohadb_drop_branch(name text)is an extension function and returnsvoid.alohadb_list_branches()is an extension function and returnsTABLE.alohadb_branchesis a table installed or managed by the extension.
Requirements and Caveats
- The reviewed control file declares default version
1.0. - The control file marks the extension as non-relocatable.
- The control file requires a superuser for installation.
- Upstream labels part or all of the project experimental.
- Confirm privileges, supported PostgreSQL versions, upgrade behavior, and failure cases against the pinned source before production use.