pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Guo <rguo@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Simplify relation_has_unique_index_for()
Date: Tue, 19 Aug 2025 00:39:47 +0000
Message-ID: <E1uoAOB-000Yq3-0e@gemulon.postgresql.org> (raw)

Simplify relation_has_unique_index_for()

Now that the only call to relation_has_unique_index_for() that
supplied an exprlist and oprlist has been removed, the loop handling
those lists is effectively dead code.  This patch removes that loop
and simplifies the function accordingly.

Author: Richard Guo <guofenglinux@gmail.com>
Discussion: https://postgr.es/m/CAMbWs4-EBnaRvEs7frTLbsXiweSTUXifsteF-d3rvv01FKO86w@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/bf9ee294e567654231c5b2fef09b8a5367907366

Modified Files
--------------
src/backend/optimizer/path/indxpath.c     | 85 +++++--------------------------
src/backend/optimizer/plan/analyzejoins.c |  5 +-
src/include/optimizer/paths.h             |  5 +-
3 files changed, 17 insertions(+), 78 deletions(-)



Message-ID: <E1uoAOB-000Yq3-0e@gemulon.postgresql.org>
Permalink:  ../E1uoAOB-000Yq3-0e@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1uoAOB-000Yq3-0e@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: rguo@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Simplify relation_has_unique_index_for()
  In-Reply-To: <E1uoAOB-000Yq3-0e@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