pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Remove PlannerInfo's join_search_private method.
Date: Tue, 07 Oct 2025 16:49:47 +0000
Message-ID: <E1v6Asl-000XNV-1b@gemulon.postgresql.org> (raw)

Remove PlannerInfo's join_search_private method.

Instead, use the new mechanism that allows planner extensions to store
private state inside a PlannerInfo, treating GEQO as an in-core planner
extension.  This is a useful test of the new facility, and also buys
back a few bytes of storage.

To make this work, we must remove innerrel_is_unique_ext's hack of
testing whether join_search_private is set as a proxy for whether
the join search might be retried. Add a flag that extensions can
use to explicitly signal their intentions instead.

Reviewed-by: Andrei Lepikhov <lepihov@gmail.com>
Reviewed-by: Melanie Plageman <melanieplageman@gmail.com>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: http://postgr.es/m/CA+TgmoYWKHU2hKr62Toyzh-kTDEnMDeLw7gkOOnjL-TnOUq0kQ@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/64095d157482136ee609586266f8a37467c69bde

Modified Files
--------------
src/backend/optimizer/geqo/geqo_eval.c    |  2 +-
src/backend/optimizer/geqo/geqo_main.c    | 12 ++++++++++--
src/backend/optimizer/geqo/geqo_random.c  |  7 +++----
src/backend/optimizer/plan/analyzejoins.c |  9 +++------
src/backend/optimizer/plan/planner.c      |  1 +
src/backend/optimizer/prep/prepjointree.c |  1 +
src/include/nodes/pathnodes.h             |  5 ++---
src/include/optimizer/geqo.h              | 12 +++++++++++-
8 files changed, 32 insertions(+), 17 deletions(-)



Message-ID: <E1v6Asl-000XNV-1b@gemulon.postgresql.org>
Permalink:  ../E1v6Asl-000XNV-1b@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1v6Asl-000XNV-1b@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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: rhaas@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Remove PlannerInfo's join_search_private method.
  In-Reply-To: <E1v6Asl-000XNV-1b@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