Download of pg_hint_plan for PostgreSQL 9.2 1.1.1 (pg_hint_plan92-1.1.1.tar.gz: 164,383 bytes) will begin shortly. If not so, click pg_hint_plan92-1.1.1.tar.gz.
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.