Skip to content

auto_explain_z

Compressed binary execution-plan logging with rotation and offline decoding.

auto_explain_z · Compressed binary execution-plan logging with rotation and offline decoding.

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
101865auto_explain_zauto_explain_z1.0STATApache-2.0C

PostgreSQL · 14, 15, 16, 17, 18

Usage

Sources:

auto_explain_z Compressed binary execution-plan logging with rotation and offline decoding.

Enablement

Merge auto_explain_z into the existing preload list, restart PostgreSQL, and then create auto_explain_z in each database that needs its SQL objects:

shared_preload_libraries = 'auto_explain_z'
CREATE EXTENSION auto_explain_z;

Core Workflow

The following example is taken from the reviewed upstream documentation. Adapt object names, paths, credentials, and workload values before use.

SELECT auto_explain_z_rotate_logfile();

Main Objects

The reviewed install surface includes these prominent objects:

ObjectKindOperational role
auto_explain_z_rotate_logfileFUNCTIONCallable function from the reviewed install surface.

Operations and Boundaries

  • The verified PostgreSQL-major evidence covers 14, 15, 16, 17, 18; do not infer unlisted majors.
  • Preloading auto_explain_z changes cluster startup state; stage configuration and restart changes separately from CREATE EXTENSION.

Table reader