Project Description Developer Dashboard Web Page Review this project

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.

System Requirements

PostgreSQL 9.1, 9.2

Install

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

Usage

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

Review
Your rating
Review this project

Statistics

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

Rating:
(3 of 5 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:
(7 of 8 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

2017-11-06
16:09
Use planner hints on PostgreSQL
[Git] commits were pushed to 'pg_hint_plan' (current: 997e099c8681195b2f8f576f5db256a749e59010)
Move expected/ut-W.out to output/ut-W.source ut-W.out contained an absolute path of my working d...
16:09
Use planner hints on PostgreSQL
[Git] commits were pushed to 'pg_hint_plan' (current: 5d887c959679f802f4f393c1b5e4dd9c01295b82)
Move expected/ut-W.out to output/ut-W.source ut-W.out contained an absolute path of my working d...
16:09
Use planner hints on PostgreSQL
[Git] commits were pushed to 'pg_hint_plan' (current: 6ea8db1756ab03937cb0b190a83e74662d279414)
Added and removed some entries in .gitignore Removed core.c, that is not appropriate. Added .dep...
16:09
Use planner hints on PostgreSQL
[Git] commits were pushed to 'pg_hint_plan' (current: f56a7f500dfc7046a777d5604c5418a961d28ef8)
Added and removed some entries in .gitignore Removed core.c, that is not appropriate. Added .dep...
16:09
Use planner hints on PostgreSQL
[Git] commits were pushed to 'pg_hint_plan' (current: 0a1445a0f04d7c864ddfab03f87e00dfb3b7186d)
Added and removed some entries in .gitignore Removed core.c, that is not appropriate. Added .dep...
Show history