| From: | Richard Guo <rguo(at)postgresql(dot)org> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Simplify relation_has_unique_index_for() |
| Date: | 2025-08-19 00:39:47 |
| Message-ID: | E1uoAOB-000Yq3-0e@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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(at)gmail(dot)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(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Michael Paquier | 2025-08-19 00:54:57 | pgsql: Remove useless pointer update in StatsShmemInit() |
| Previous Message | Michael Paquier | 2025-08-19 00:09:34 | pgsql: test_ddl_deparse: Rename test create_sequence_1 to create_sequen |