Skip to content

vg_planner

VitalGraph-generated planner advice for join cardinality, methods and order.

vital-graph · VitalGraph-generated planner advice for join cardinality, methods and order.

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
102331vg_plannervital-graph0.2FEATApache-2.0C

PostgreSQL · 18

Usage

Sources:

vg_planner 0.2 applies VitalGraph-generated advice to PostgreSQL join cardinalities, methods and order.

Core Workflow

Append the library and restart before using planner advice. Generated SQL carries structured plan comments; ordinary statements without advice remain unaffected. vg_planner_last_report describes which items applied, and vg_planner.enabled is the session kill switch.

shared_preload_libraries = 'vg_planner'
CREATE EXTENSION vg_planner;
SELECT vg_planner_info();
SHOW vg_planner.enabled;
SELECT vg_planner_last_report();

Operational Boundaries

The reviewed source integrates PostgreSQL 18-specific join-planner code and requires superuser installation. Malformed advice is rejected; vg_planner.on_mismatch controls the documented mismatch response. Requested methods may be unavailable, so inspect the report and execution plan. This is a development integration for the VitalGraph generator, not a generic compatibility promise for arbitrary hints.

Table reader