HorizonDB - Query Tuning / Other Planner Options

This article lists parameters shared by PostgreSQL 17 and PostgreSQL 18 (Preview). Version-specific entries follow where their attributes or availability differ.

Template value is the configuration template's value, not a verification of your compute pool's effective value. A hyphen (-) means the template doesn't declare the attribute. It doesn't mean that a parameter is writable or dynamic.

For your compute pool's configured and effective values, see List and filter parameters.

Shared parameters

constraint_exclusion

Attribute Value
Category Query Tuning / Other Planner Options
PostgreSQL versions 17, 18 (Preview)
Description Enables the planner to use constraints to optimize queries. The planner skips table scans if constraints guarantee that no rows match the query.
Data type enumeration
Template value partition
Allowed values partition,on,off
Read-only -
Parameter type -
Documentation PostgreSQL 17, PostgreSQL 18 (Preview)

cursor_tuple_fraction

Attribute Value
Category Query Tuning / Other Planner Options
PostgreSQL versions 17, 18 (Preview)
Description Sets the planner's estimate of the fraction of a cursor's rows that the query retrieves.
Data type numeric
Template value 0.1
Allowed values 0-1
Read-only -
Parameter type -
Documentation PostgreSQL 17, PostgreSQL 18 (Preview)

default_statistics_target

Attribute Value
Category Query Tuning / Other Planner Options
PostgreSQL versions 17, 18 (Preview)
Description Sets the default statistics target. This setting applies to table columns that don't have a column-specific target set through ALTER TABLE SET STATISTICS.
Data type integer
Template value 100
Allowed values 1-10000
Read-only -
Parameter type -
Documentation PostgreSQL 17, PostgreSQL 18 (Preview)

from_collapse_limit

Attribute Value
Category Query Tuning / Other Planner Options
PostgreSQL versions 17, 18 (Preview)
Description Sets the FROM-list size beyond which the query planner doesn't collapse subqueries. The query planner merges subqueries into upper queries if the resulting FROM list has no more than this many items.
Data type integer
Template value 8
Allowed values 1-2147483647
Read-only -
Parameter type -
Documentation PostgreSQL 17, PostgreSQL 18 (Preview)

join_collapse_limit

Attribute Value
Category Query Tuning / Other Planner Options
PostgreSQL versions 17, 18 (Preview)
Description Sets the FROM-list size beyond which JOIN constructs aren't flattened. The planner flattens explicit JOIN constructs into lists of FROM items whenever a list of no more than this many items results.
Data type integer
Template value 8
Allowed values 1-2147483647
Read-only -
Parameter type -
Documentation PostgreSQL 17, PostgreSQL 18 (Preview)

plan_cache_mode

Attribute Value
Category Query Tuning / Other Planner Options
PostgreSQL versions 17, 18 (Preview)
Description Controls the planner's selection of custom or generic plan. Prepared statements can have custom and generic plans, and the planner tries to choose the better plan. Set this parameter to override the default behavior.
Data type enumeration
Template value auto
Allowed values auto,force_generic_plan,force_custom_plan
Read-only -
Parameter type -
Documentation PostgreSQL 17, PostgreSQL 18 (Preview)

recursive_worktable_factor

Attribute Value
Category Query Tuning / Other Planner Options
PostgreSQL versions 17, 18 (Preview)
Description Sets the planner's estimate of the average size of a recursive query's working table.
Data type numeric
Template value 10
Allowed values 0.001-1e+06
Read-only -
Parameter type -
Documentation PostgreSQL 17, PostgreSQL 18 (Preview)