项目描述 Developer Dashboard 项目的网页 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.

安装

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

用法

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

Your rating
Review this project

统计

2017-05-24 19:49
评论由 SEAN.KIM

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

2015-02-09 14:14
评论由 Mladen Gogala

Rating:
(15 of 20 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.
评列表

近期活动

2018-12-05
17:33
Use planner hints on PostgreSQL
[Git] commits were pushed to 'pg_hint_plan' (current: 3851f4221bc7c3a6f762efd4b40042b179ed614e)
Fix for union-on-inheritance case setup_hint_enforcement may pick up a wrong hint when multiple ...
17:33
Use planner hints on PostgreSQL
[Git] commits were pushed to 'pg_hint_plan' (current: 6f23970d4eb8d9285762fbea1799799962fc5c4c)
Fix for union-on-inheritance case setup_hint_enforcement may pick up a wrong hint when multiple ...
17:33
Use planner hints on PostgreSQL
[Git] commits were pushed to 'pg_hint_plan' (current: 37f3c8cb2b0ccd821ed80ab60a7c85bf5aa43616)
Fix for union-on-inheritance case setup_hint_enforcement may pick up a wrong hint when multiple ...
17:33
Use planner hints on PostgreSQL
[Git] commits were pushed to 'pg_hint_plan' (current: 0eda42ba5ec6e360acab1458ca72345b8c8923a8)
Fix for union-on-inheritance case setup_hint_enforcement may pick up a wrong hint when multiple ...
17:33
Use planner hints on PostgreSQL
[Git] commits were pushed to 'pg_hint_plan' (current: 3fb05c9aad1a66fa3bf07edc301e0fb6f0328af6)
Adjust regression test Some regression test items need adjustment due to change of server behavi...
Show history