Skip to content

autopex

Event-trigger extension that invokes Pex to automatically download and build PostgreSQL extensions when CREATE EXTENSION is run.

autopex · Event-trigger extension that invokes Pex to automatically download and build PostgreSQL extensions when CREATE EXTENSION is run.

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
100563autopexautopex0ADMINUnknownC

PostgreSQL · 10, 11, 12, 13, 14, 15, 16, 17, 18

Usage

Sources:

autopex is an archived PostgreSQL 9.3-era experiment that intercepts CREATE EXTENSION with an event trigger. Together with the external Pex tool, it attempts to download, build, and install an extension automatically when PostgreSQL cannot find it locally.

CREATE EXTENSION autopex;
SELECT evtname, evtevent, evtenabled
FROM pg_event_trigger
WHERE evtname = 'autopex';

The operating-system PostgreSQL account must have a Pex installation and build environment. This design turns a database DDL request into network access, arbitrary upstream source retrieval, compilation, and writes to the server installation. It therefore expands database superuser access into operating-system supply-chain execution.

Do not use autopex on production or current PostgreSQL. Prefer reviewed, reproducible packages installed by configuration management. If preserving a historical test environment, deny untrusted CREATE privileges, isolate outbound network access, pin every artifact and checksum, and run only inside a disposable host. Dropping the extension should be verified to remove its event trigger before further DDL.

Table reader