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 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. |
|
Disable indexes |
|
Disables the specified indexes during query planning, taking precedence over any other hints. |
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 suggests the number of workers but lets the planner decide whether parallel is worthwhile based on cost. Hard forces parallel execution regardless of cost estimates by penalizing non-parallel paths. |
GUC |
|
Sets GUC parameter to the value defined while planner is running. |