Skip to content

Give PostgreSQL ability to manually force some decisions in execution plans.

License

Notifications You must be signed in to change notification settings

peter15914/pg_hint_plan

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pg_hint_plan 1.7

pg_hint_plan makes it possible to tweak PostgreSQL execution plans using so-called "hints" in SQL comments, like /*+ SeqScan(a) */.

PostgreSQL uses a cost-based optimizer, which utilizes data statistics, not static rules. The planner (optimizer) esitimates costs of each possible execution plans for a SQL statement then the execution plan with the lowest cost finally be executed. The planner does its best to select the best best execution plan, but is not always perfect, since it doesn't count some properties of the data, for example, correlation between columns.

For more details, please see the various documentations available in the docs/ directory:

  1. Description
  2. The hint table
  3. Installation
  4. Unistallation
  5. Details in hinting
  6. Errors
  7. Functional limitations
  8. Requirements
  9. Hints list

Copyright (c) 2012-2023, NIPPON TELEGRAPH AND TELEPHONE CORPORATION

About

Give PostgreSQL ability to manually force some decisions in execution plans.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 68.8%
  • PLpgSQL 16.9%
  • Lex 10.3%
  • Perl 3.1%
  • Other 0.9%