Skip to content

alohadb_branch

Lightweight database branching for testing migrations and experiments

alohadb_branch · Lightweight database branching for testing migrations and experiments

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
101271alohadb_branchalohadb_branch1.0FEATMITC

Usage

Sources:

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

CREATE EXTENSION alohadb_branch;

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 returns record.
  • alohadb_drop_branch(name text) is an extension function and returns void.
  • alohadb_list_branches() is an extension function and returns TABLE.
  • alohadb_branches is 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.

Table reader