Hint listΒΆ
The available hints are listed below.
Group |
Format |
Description |
---|---|---|
Scan method |
|
Forces sequential scan on the table. |
|
Forces TID scan on the table. |
|
|
Forces index scan on the table. Restricts to specified indexes if any. |
|
|
Forces index-only scan on the table. Restricts to specified indexes if any. Index scan may be used if index-only scan is not available. |
|
|
Forces bitmap scan on the table. Restricts to specified indexes if any. |
|
|
Forces index scan, index-only scan (For PostgreSQL 9.2 and later) or bitmap scan on the table. Restricts to indexes that matches the specified POSIX regular expression pattern. |
|
|
Forces to not do sequential scan on the table. |
|
|
Forces to not do TID scan on the table. |
|
|
Forces to not do index scan and index-only scan on the table. |
|
|
Forces to not do index only scan on the table. |
|
|
Forces to not do bitmap scan on the table. |
|
Join method |
|
Forces nested loop for the joins on the tables specified. |
|
Forces hash join for the joins on the tables specified. |
|
|
Forces merge join for the joins on the tables specified. |
|
|
Forces to not do nested loop for the joins on the tables specified. |
|
|
Forces to not do hash join for the joins on the tables specified. |
|
|
Forces to not do merge join for the joins on the tables specified. |
|
Join order |
|
Forces join order as specified. |
|
Forces join order and directions as specified. A join pair is a pair of tables and/or other join pairs enclosed by parentheses, which can make a nested structure. |
|
Behavior control on Join |
|
Allows the topmost join of a join among the specified tables to Memoize the inner result. Not enforced. |
|
Inhibits the topmost join of a join among the specified tables from Memoizing the inner result. |
|
Row number correction |
|
Corrects row number of a result of the joins on the tables specified. The available correction methods are absolute (# |
Parallel query configuration |
|
Enforces or inhibits parallel execution of the specified table. <# of workers> is the desired number of parallel workers, where zero means inhibiting parallel execution. If the third parameter is soft (default), it just changes max_parallel_workers_per_gather and leaves everything else to the planner. Hard enforces the specified number of workers. |
GUC |
|
Sets GUC parameter to the value defined while planner is running. |