Wiki / Configuration Parameters
recursive_worktable_factor
Sets the planner's estimate of the average size of the working table of a recursive query, as a multiple of the estimated size of the initial non-recursive term of the query. This helps the planner choose the most appropriate method for joining the working table to the query's other tables. The default value is 10.0. A smaller value such as 1.0 can be helpful when the recursion has low “fan-out” from one step to the next, as for example in shortest-path queries. Graph analytics queries may benefit from larger-than-default values.
English manual coverage begins with PostgreSQL 7.4. Source history and runtime observations have their own recorded version boundaries.
Reading PG 18·Select a recorded version
- boot val
- 10
- category
- Query Tuning / Other Planner Options
- context
- user
- documented
- true
- enumvals
- Unknown
- extra desc
- Unknown
- lang
- en
- max val
- 1e+06
- metadata version
- 18
- min val
- 0.001
- name
- recursive_worktable_factor
- short desc
- Sets the planner's estimate of the average size of a recursive query's working table.
- source
- pg-settings-source-snapshot
- unit
- Unknown
- vartype
- real
Definition PG 18
Sets the planner's estimate of the average size of the working table of a recursive query, as a multiple of the estimated size of the initial non-recursive term of the query. This helps the planner choose the most appropriate method for joining the working table to the query's other tables. The default value is 10.0. A smaller value such as 1.0 can be helpful when the recursion has low “fan-out” from one step to the next, as for example in shortest-path queries. Graph analytics queries may benefit from larger-than-default values.
Compare versions
Source references
Full definition and evidence JSON
Definition sources
center · PostgreSQL 18 · wiki-repair-20261023:fd05326040e2e805e6b8a2793a8e7c5ce6d9a905c3e7ef5bde4ddd60b1cd7f83
Text language: en · wiki-repair-20261023:fd05326040e2e805e6b8a2793a8e7c5ce6d9a905c3e7ef5bde4ddd60b1cd7f83