pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Invent recursive_worktable_factor GUC to replace hard-wired cons
Date: Thu, 24 Mar 2022 15:47:52 +0000
Message-ID: <E1nXPgl-001BcY-JJ@gemulon.postgresql.org> (raw)

Invent recursive_worktable_factor GUC to replace hard-wired constant.

Up to now, the planner estimated the size of a recursive query's
worktable as 10 times the size of the non-recursive term.  It's hard
to see how to do significantly better than that automatically, but
we can give users control over the multiplier to allow tuning for
specific use-cases.  The default behavior remains the same.

Simon Riggs

Discussion: https://postgr.es/m/CANbhV-EuaLm4H3g0+BSTYHEGxJj3Kht0R+rJ8vT57Dejnh=_nA@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/0bd7af082ace135581bb13a6bd2d88e68c66a3e0

Modified Files
--------------
doc/src/sgml/config.sgml                      | 23 +++++++++++++++++++++++
src/backend/optimizer/path/costsize.c         |  8 +++++---
src/backend/utils/misc/guc.c                  | 12 ++++++++++++
src/backend/utils/misc/postgresql.conf.sample |  1 +
src/include/optimizer/cost.h                  |  2 ++
src/include/optimizer/optimizer.h             |  1 +
6 files changed, 44 insertions(+), 3 deletions(-)



Message-ID: <E1nXPgl-001BcY-JJ@gemulon.postgresql.org>
Permalink:  ../E1nXPgl-001BcY-JJ@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1nXPgl-001BcY-JJ@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Invent recursive_worktable_factor GUC to replace hard-wired cons
  In-Reply-To: <E1nXPgl-001BcY-JJ@gemulon.postgresql.org>
  References: <E1nXPgl-001BcY-JJ@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox