Giter Site home page Giter Site logo

skyzh / pg_hint_plan Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ossc-db/pg_hint_plan

1.0 1.0 0.0 1.28 MB

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

License: Other

Shell 0.16% Perl 3.57% C 76.09% Makefile 0.88% PLpgSQL 19.29%

pg_hint_plan's Introduction

pg_hint_plan 1.5

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

pg_hint_plan's People

Contributors

metrohasegawa avatar hanada avatar horiguti avatar michaelpq avatar rjuju avatar za-arthur avatar yamatattsu avatar skyzh avatar anisimov-ds avatar littlewucoding avatar tideri avatar rattrayalex avatar felixge avatar masaofujii avatar xzilla avatar yang-rong-0814 avatar fzhlib avatar mikecaat avatar sherlockcpp avatar cstarc avatar

Stargazers

Yu Zhao avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.