pgsql: Rename EXISTS-to-ANY converted subplan to exists_to_any

From: Fujii Masao <fujii(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Rename EXISTS-to-ANY converted subplan to exists_to_any
Date: 2026-08-15 09:13:22
Message-ID: E1wvAS9-00000000eqN-0UhU@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Rename EXISTS-to-ANY converted subplan to exists_to_any

Simple EXISTS subplans can be converted to hashed ANY subplans as
an alternative implementation. Previously, both the original EXISTS
subplan and the converted ANY subplan used names with the
exists_ prefix, making EXPLAIN output harder to read and
pg_plan_advice targets less clear.

Use the exists_to_any_ prefix for converted ANY subplans so that
their names distinguish them from the original EXISTS alternative.
This only changes the names shown by EXPLAIN and used by plan advice;
it does not affect planner behavior.

Author: Yugo Nagata <nagata(at)sraoss(dot)co(dot)jp>
Reviewed-by: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Reviewed-by: solai v <solai(dot)cdac(at)gmail(dot)com>
Reviewed-by: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
Discussion: https://postgr.es/m/20260605165641.3950f99ace0aad8f807abe96@sraoss.co.jp
Backpatch-through: 19

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/7b7c4a8dcc933f61493356a45256b47783ce404f

Modified Files
--------------
contrib/pg_plan_advice/expected/alternatives.out | 30 ++++++++++++------------
contrib/pg_plan_advice/sql/alternatives.sql | 2 +-
src/backend/optimizer/plan/subselect.c | 8 +++++--
src/test/regress/expected/partition_prune.out | 10 ++++----
src/test/regress/expected/subselect.out | 16 ++++++-------
5 files changed, 35 insertions(+), 31 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Fujii Masao 2026-08-15 09:13:34 pgsql: Rename EXISTS-to-ANY converted subplan to exists_to_any
Previous Message Nathan Bossart 2026-08-14 20:28:27 pgsql: doc: Clarify the logging collector's guarantees.