Project Description

PostgreSQL executes queries using cost-based optimizer, and sometimes fails to choose most optimized execution plan or some types of queries. In such cases, pg_hint_plan helps users to guide the planner to choose the plans they want by putting some nstructions - call them hints - in the comments prefixed to the SQL statement body. No need to rewrite statement tself nor change some GUC parameters elsewhere.

Install

pg_hint_planをソースコードからビルドする場合、pg_hint_planのソースを展開したディレクトリで make → make installの順に実行してください。 make installはPostgreSQLをインストールしたOSユーザで実行してく... Show How to Install

Usage

pg_hint_planの機能について説明します。 ヒントの記述方法 ヒントはクエリ文字列の先頭のブロックコメント内に記述してください。ブロックコメントをヒントとして認識させるには、ブロックコメントの開始直後に... Show Usage

Download

win32 Windows pg_hint_plan11-1.3.4-1.el7.x86_64.rpm (Date: 2019-01-17, Size: 32.64 KB)
macosx Mac pg_hint_plan11-1.3.4-1.el7.x86_64.rpm (Date: 2019-01-17, Size: 32.64 KB)
linux Linux pg_hint_plan11-1.3.4-1.el7.x86_64.rpm (Date: 2019-01-17, Size: 32.64 KB)

Review
Your rating
Review this project

Statistics

2017-05-24 19:49
Review by SEAN.KIM

Rating:
(8 of 14 people found this review helpful)
It's amazing. We use it to do very effective SQL tuning.

2015-02-09 14:14
Review by Mladen Gogala

Rating:
(15 of 21 people found this review helpful)
I tested this on a Postgres database and hints work beautifully. This is a long awaited extension for PgSQL which makes it much more usable.
Pros
When time is of the essence, hints are often the only solution. The normal session level commands supported by Postgres are frequently inadequate because all that is needed is to fix a single SQL. Praises and kudos to the authors of this long awaited extension.
Cons
No cons. If the hints are not needed, don't use them.
Review List

Recent Activities

2019-03-08
14:06
Use planner hints on PostgreSQL
[Git] commits were pushed to 'pg_hint_plan' (current: cb78687c4dc102498087d59dc407a67a07fe8df0)
Silence some compilers Some compilers seem to complain about the previous patch, that prev_hint_...
14:06
Use planner hints on PostgreSQL
[Git] commits were pushed to 'pg_hint_plan' (current: 1d935d6269fa811dd39f07bd95989c692f80bc79)
Silence some compilers Some compilers seem to complain about the previous patch, that prev_hint_...
14:06
Use planner hints on PostgreSQL
[Git] commits were pushed to 'pg_hint_plan' (current: 6a588354120787e78cfcfaed26c3f67b6f6b9b84)
Silence some compilers Some compilers seem to complain about the previous patch, that prev_hint_...
14:06
Use planner hints on PostgreSQL
[Git] commits were pushed to 'pg_hint_plan' (current: b8f3e8a5d7d1ca17d2b478c194c9a9fe78d01c6a)
Silence some compilers Some compilers seem to complain about the previous patch, that prev_hint_...
2019-02-26
20:13
Use planner hints on PostgreSQL
[Git] commits were pushed to 'pg_hint_plan' (current: 000c325874cc07eb944447d046a122dcc8642520)
Correctly handle planner nesting pg_hint_plan assumed that plpgsql is the only source of nested ...
Show history