From: Fujii Masao <fujii@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Rename EXISTS-to-ANY converted subplan to exists_to_any
Date: Sat, 15 Aug 2026 09:13:34 +0000
Message-ID: <E1wvASL-00000000erb-2uxd@gemulon.postgresql.org> (raw)
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@sraoss.co.jp>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Reviewed-by: solai v <solai.cdac@gmail.com>
Reviewed-by: Fujii Masao <masao.fujii@gmail.com>
Discussion: https://postgr.es/m/20260605165641.3950f99ace0aad8f807abe96@sraoss.co.jp
Backpatch-through: 19
Branch
------
REL_19_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/3ab3f33281f62bdcef1dd987a89fcfe7f082b6d8
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(-)
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: fujii@postgresql.org, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Rename EXISTS-to-ANY converted subplan to exists_to_any
In-Reply-To: <E1wvASL-00000000erb-2uxd@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