pg_hint_plan
pg_hint_plan
Give PostgreSQL ability to manually force some decisions in execution plans.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 2820 | pg_hint_plan | pg_hint_plan | 1.8.0 | FEAT | BSD 3-Clause | C |
| Attribute | Has Binary | Has Library | Need Load | Has DDL | Relocatable | Trusted |
|---|---|---|---|---|---|---|
--s-d-- | No | Yes | No | Yes | no | no |
| Relationships | |
|---|---|
| See Also | pg_show_plans pg_store_plans pg_stat_statements hypopg pg_qualstats auto_explain index_advisor pg_profile |
Packages
| Type | Repo | Version | PG Major Availability | Package Pattern | Dependencies |
|---|---|---|---|---|---|
| EL | PGDG | 1.8.0 | 18 17 16 15 14 13 | pg_hint_plan_$v* | - |
| Debian | PGDG | 1.8.0 | 18 17 16 15 14 13 | postgresql-$v-pg-hint-plan | - |
| Linux / PG | PG18 | PG17 | PG16 | PG15 | PG14 | PG13 |
|---|---|---|---|---|---|---|
el8.x86_64 | PGDG 1.8.0 | PGDG 1.7.1 | PGDG 1.6.2 | PGDG 1.5.3 | PGDG 1.4.4 | PGDG 1.3.9 |
el8.aarch64 | PGDG 1.8.0 | PGDG 1.7.1 | PGDG 1.6.2 | PGDG 1.5.3 | PGDG 1.4.4 | PGDG 1.3.9 |
el9.x86_64 | PGDG 1.8.0 | PGDG 1.7.1 | PGDG 1.6.2 | PGDG 1.5.3 | PGDG 1.4.4 | PGDG 1.3.9 |
el9.aarch64 | PGDG 1.8.0 | PGDG 1.7.1 | PGDG 1.6.2 | PGDG 1.5.3 | PGDG 1.4.4 | PGDG 1.3.9 |
el10.x86_64 | PGDG 1.8.0 | PGDG 1.7.1 | PGDG 1.6.2 | PGDG 1.5.3 | PGDG 1.4.4 | PGDG 1.3.11 |
el10.aarch64 | PGDG 1.8.0 | PGDG 1.7.1 | PGDG 1.6.2 | PGDG 1.5.3 | PGDG 1.4.4 | PGDG 1.3.11 |
d12.x86_64 | PGDG 1.8.0 | PGDG 1.7.1 | PGDG 1.6.2 | PGDG 1.5.3 | PGDG 1.4.4 | PGDG 1.3.11 |
d12.aarch64 | PGDG 1.8.0 | PGDG 1.7.1 | PGDG 1.6.2 | PGDG 1.5.3 | PGDG 1.4.4 | PGDG 1.3.11 |
d13.x86_64 | PGDG 1.8.0 | PGDG 1.7.1 | PGDG 1.6.2 | PGDG 1.5.3 | PGDG 1.4.4 | PGDG 1.3.11 |
d13.aarch64 | PGDG 1.8.0 | PGDG 1.7.1 | PGDG 1.6.2 | PGDG 1.5.3 | PGDG 1.4.4 | PGDG 1.3.11 |
u22.x86_64 | PGDG 1.8.0 | PGDG 1.7.1 | PGDG 1.6.2 | PGDG 1.5.3 | PGDG 1.4.4 | PGDG 1.3.11 |
u22.aarch64 | PGDG 1.8.0 | PGDG 1.7.1 | PGDG 1.6.2 | PGDG 1.5.3 | PGDG 1.4.4 | PGDG 1.3.11 |
u24.x86_64 | PGDG 1.8.0 | PGDG 1.7.1 | PGDG 1.6.2 | PGDG 1.5.3 | PGDG 1.4.4 | PGDG 1.3.11 |
u24.aarch64 | PGDG 1.8.0 | PGDG 1.7.1 | PGDG 1.6.2 | PGDG 1.5.3 | PGDG 1.4.4 | PGDG 1.3.11 |
| Package | Version | OS | ORG | SIZE | File URL |
|---|---|---|---|---|---|
pg_hint_plan_18 | 1.8.0 | el8.x86_64 | pgdg | 55.3 KiB | pg_hint_plan_18-1.8.0-1PGDG.rhel8.x86_64.rpm |
pg_hint_plan_18 | 1.8.0 | el8.aarch64 | pgdg | 51.7 KiB | pg_hint_plan_18-1.8.0-1PGDG.rhel8.aarch64.rpm |
pg_hint_plan_18 | 1.8.0 | el9.x86_64 | pgdg | 54.4 KiB | pg_hint_plan_18-1.8.0-1PGDG.rhel9.x86_64.rpm |
pg_hint_plan_18 | 1.8.0 | el9.aarch64 | pgdg | 52.5 KiB | pg_hint_plan_18-1.8.0-1PGDG.rhel9.aarch64.rpm |
pg_hint_plan_18 | 1.8.0 | el10.x86_64 | pgdg | 55.5 KiB | pg_hint_plan_18-1.8.0-1PGDG.rhel10.x86_64.rpm |
pg_hint_plan_18 | 1.8.0 | el10.aarch64 | pgdg | 53.7 KiB | pg_hint_plan_18-1.8.0-1PGDG.rhel10.aarch64.rpm |
postgresql-18-pg-hint-plan | 1.8.0 | d12.x86_64 | pgdg | 132.8 KiB | postgresql-18-pg-hint-plan_1.8.0-2.pgdg12+1_amd64.deb |
postgresql-18-pg-hint-plan | 1.8.0 | d12.aarch64 | pgdg | 128.5 KiB | postgresql-18-pg-hint-plan_1.8.0-2.pgdg12+1_arm64.deb |
postgresql-18-pg-hint-plan | 1.8.0 | d13.x86_64 | pgdg | 133.1 KiB | postgresql-18-pg-hint-plan_1.8.0-2.pgdg13+1_amd64.deb |
postgresql-18-pg-hint-plan | 1.8.0 | d13.aarch64 | pgdg | 129.0 KiB | postgresql-18-pg-hint-plan_1.8.0-2.pgdg13+1_arm64.deb |
postgresql-18-pg-hint-plan | 1.8.0 | u22.x86_64 | pgdg | 133.7 KiB | postgresql-18-pg-hint-plan_1.8.0-2.pgdg22.04+1_amd64.deb |
postgresql-18-pg-hint-plan | 1.8.0 | u22.aarch64 | pgdg | 129.8 KiB | postgresql-18-pg-hint-plan_1.8.0-2.pgdg22.04+1_arm64.deb |
postgresql-18-pg-hint-plan | 1.8.0 | u24.x86_64 | pgdg | 131.6 KiB | postgresql-18-pg-hint-plan_1.8.0-2.pgdg24.04+1_amd64.deb |
postgresql-18-pg-hint-plan | 1.8.0 | u24.aarch64 | pgdg | 127.8 KiB | postgresql-18-pg-hint-plan_1.8.0-2.pgdg24.04+1_arm64.deb |
| Package | Version | OS | ORG | SIZE | File URL |
|---|---|---|---|---|---|
pg_hint_plan_17 | 1.7.1 | el8.x86_64 | pgdg | 53.2 KiB | pg_hint_plan_17-1.7.1-1PGDG.rhel8.x86_64.rpm |
pg_hint_plan_17 | 1.7.0 | el8.x86_64 | pgdg | 51.4 KiB | pg_hint_plan_17-1.7.0-1PGDG.rhel8.x86_64.rpm |
pg_hint_plan_17 | 1.7.1 | el8.aarch64 | pgdg | 50.0 KiB | pg_hint_plan_17-1.7.1-1PGDG.rhel8.aarch64.rpm |
pg_hint_plan_17 | 1.7.0 | el8.aarch64 | pgdg | 48.2 KiB | pg_hint_plan_17-1.7.0-1PGDG.rhel8.aarch64.rpm |
pg_hint_plan_17 | 1.7.1 | el9.x86_64 | pgdg | 52.6 KiB | pg_hint_plan_17-1.7.1-1PGDG.rhel9.x86_64.rpm |
pg_hint_plan_17 | 1.7.0 | el9.x86_64 | pgdg | 50.7 KiB | pg_hint_plan_17-1.7.0-1PGDG.rhel9.x86_64.rpm |
pg_hint_plan_17 | 1.7.1 | el9.aarch64 | pgdg | 50.6 KiB | pg_hint_plan_17-1.7.1-1PGDG.rhel9.aarch64.rpm |
pg_hint_plan_17 | 1.7.0 | el9.aarch64 | pgdg | 49.0 KiB | pg_hint_plan_17-1.7.0-1PGDG.rhel9.aarch64.rpm |
pg_hint_plan_17 | 1.7.1 | el10.x86_64 | pgdg | 53.6 KiB | pg_hint_plan_17-1.7.1-1PGDG.rhel10.x86_64.rpm |
pg_hint_plan_17 | 1.7.0 | el10.x86_64 | pgdg | 52.0 KiB | pg_hint_plan_17-1.7.0-3PGDG.rhel10.x86_64.rpm |
pg_hint_plan_17 | 1.7.1 | el10.aarch64 | pgdg | 52.1 KiB | pg_hint_plan_17-1.7.1-1PGDG.rhel10.aarch64.rpm |
pg_hint_plan_17 | 1.7.0 | el10.aarch64 | pgdg | 50.4 KiB | pg_hint_plan_17-1.7.0-3PGDG.rhel10.aarch64.rpm |
postgresql-17-pg-hint-plan | 1.7.1 | d12.x86_64 | pgdg | 128.0 KiB | postgresql-17-pg-hint-plan_1.7.1-1.pgdg12+1_amd64.deb |
postgresql-17-pg-hint-plan | 1.7.1 | d12.aarch64 | pgdg | 123.9 KiB | postgresql-17-pg-hint-plan_1.7.1-1.pgdg12+1_arm64.deb |
postgresql-17-pg-hint-plan | 1.7.1 | d13.x86_64 | pgdg | 128.4 KiB | postgresql-17-pg-hint-plan_1.7.1-1.pgdg13+1_amd64.deb |
postgresql-17-pg-hint-plan | 1.7.1 | d13.aarch64 | pgdg | 124.3 KiB | postgresql-17-pg-hint-plan_1.7.1-1.pgdg13+1_arm64.deb |
postgresql-17-pg-hint-plan | 1.7.1 | u22.x86_64 | pgdg | 140.9 KiB | postgresql-17-pg-hint-plan_1.7.1-1.pgdg22.04+1_amd64.deb |
postgresql-17-pg-hint-plan | 1.7.1 | u22.aarch64 | pgdg | 137.2 KiB | postgresql-17-pg-hint-plan_1.7.1-1.pgdg22.04+1_arm64.deb |
postgresql-17-pg-hint-plan | 1.7.1 | u24.x86_64 | pgdg | 126.7 KiB | postgresql-17-pg-hint-plan_1.7.1-1.pgdg24.04+1_amd64.deb |
postgresql-17-pg-hint-plan | 1.7.1 | u24.aarch64 | pgdg | 123.4 KiB | postgresql-17-pg-hint-plan_1.7.1-1.pgdg24.04+1_arm64.deb |
Source
pig build get pg_hint_plan; # get pg_hint_plan source code
pig build dep pg_hint_plan; # install build dependencies
pig build pkg pg_hint_plan; # build extension rpm or deb
pig build ext pg_hint_plan; # build extension rpmsInstall
To add the required PGDG / PIGSTY upstream repository, use:
pig repo add pgsql -u # add PGDG + Pigsty repo and update cache (leave existing repos)Install this extension with:
pig ext install pg_hint_plan; # install by extension name, for the current active PG version
pig ext install pg_hint_plan; # install via package alias, for the active PG version
pig ext install pg_hint_plan -v 18; # install for PG 18
pig ext install pg_hint_plan -v 17; # install for PG 17
pig ext install pg_hint_plan -v 16; # install for PG 16
pig ext install pg_hint_plan -v 15; # install for PG 15
pig ext install pg_hint_plan -v 14; # install for PG 14
pig ext install pg_hint_plan -v 13; # install for PG 13Create this extension with:
CREATE EXTENSION pg_hint_plan CASCADE SCHEMA hint_plan;Last updated on