pg_hint_plan17

This Release
pg_hint_plan17 1.7.0
Date
Status
Stable
Abstract
Query hints in SQL comments
Description
This library adds support for query hints in SQL comments in PostgreSQL 17.
Released By
michaelpq
License
BSD
Resources
Special Files
Tags

Extensions

pg_hint_plan 1.7.0
Query hints in SQL comments

Documentation

requirements
requirements
errors
Errors
functional_limitations
Functional limitations
uninstallation
Uninstallation
installation
Installation
index
pg_hint_plan 1.7
synopsis
Synopsis
description
Description
hint_table
The hint table
hint_details
Details in hinting
hint_list
Hint list

README

Contents

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, that uses data statistics, not static rules. The planner (optimizer) estimates costs of each possible execution plans for a SQL statement, then executes the plan with the lowest cost. The planner does its best to select the best execution plan, but it is far from perfect, since it may not count some data properties, like 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. Uninstallation
  5. Details in hinting
  6. Errors
  7. Functional limitations
  8. Requirements
  9. Hints list

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