Skip to content

myext

A useful and a flexible pattern for reloading postgres SQL extensions without losing data in extension-managed tables.

myext · A useful and a flexible pattern for reloading postgres SQL extensions without losing data in extension-managed tables.

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
101470myextmyext-ADMINUnknownShell

Usage

Sources:

myext — After installing this demo extension, run these commands using psql, pgAdmin, or an IPython notebook using a SQL kernel:. Use it when administering or automating the database behavior described above. Use the pinned upstream revision linked above as the API boundary and test it on the target PostgreSQL build.

Core Workflow

CREATE EXTENSION myext;

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

  • myext_reload() is an extension function and returns text.

Requirements and Caveats

  • The reviewed control file declares default version noop.
  • 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.

Table reader