select open change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

Extensions / Administration

pg_stash_advice

Store plan advice by query ID and automatically apply it during PostgreSQL query planning

pgext.cloud · Source code · Website · Documentation · License text · Control file

Overview

Packagepostgresql
Version1.0
PostgreSQL versions19
RepositoryPostgreSQL contrib
Extension typeStandard
Project statusActive
Requires CREATE EXTENSIONYes
Requires preloadYes
TrustedNo
RelocatableYes
Shared librariespg_plan_advice, pg_stash_advice
Latest commit2026-07-06
Catalogue updated2026-09-19

Related extensions

Requires

pg_plan_adviceDescribe and constrain planner choices with plan advice

See also

planinstrPlanner hook for measuring PostgreSQL planning time, intended mainly for debugging.
pargresPrototype parallel query execution module for shared-nothing PostgreSQL clusters
pg_table_rangePlanning-time partition pruning by per-partition data ranges, including non-key columns.
mv_rewriteQuery rewriting extension that transparently rewrites queries to use lower-cost materialized views.
pg_bofhRejects queries without WHERE clauses using a planner hook loaded via shared_preload_libraries.
optpathsPlanner hook extension for adding paths and removing self joins
pathprobePostgreSQL planner path probing extension for planner-aware SQL agents
sql_saga_nativeRust/pgrx companion library that accelerates sql_saga temporal_merge planning and executor introspection.

Same project

pg_plan_adviceDescribe and constrain planner choices with plan advice