Skip to content

planscape

Headless module recording planner alternatives as JSON

planscape · Headless module recording planner alternatives as JSON

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
102235planscapeplanscape1.0STATC++

Usage

Sources:

planscape is loaded into a PostgreSQL session to record planner alternatives while running EXPLAIN. Its control file identifies version 1.0, but the Makefile does not install extension SQL; use LOAD rather than CREATE EXTENSION.

Core Workflow

LOAD 'planscape';
CREATE TEMP TABLE planscape_example (a integer);
EXPLAIN (PLANSCAPE) SELECT avg(a) FROM planscape_example;

Operational Boundaries

The module intercepts planner and reporting functions through runtime code hooks and writes planning data as JSON. EXPLAIN (PLANSCAPE) is its documented entry point. Loading the library requires an appropriately privileged session. The low-level hook engine is architecture and server-build sensitive; the repository does not declare a current PostgreSQL support range or license. Use an isolated development environment and review its file-output behavior before testing sensitive queries.

Table reader