pgsql: Remove dead code in get_param_path_clause_serials()

From: Richard Guo <rguo(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Remove dead code in get_param_path_clause_serials()
Date: 2024-11-26 00:28:52
Message-ID: E1tFjRk-003XIm-Mj@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Remove dead code in get_param_path_clause_serials()

The function get_param_path_clause_serials() is used to get the set of
pushed-down clauses enforced within a parameterized Path. Since we
don't currently support parameterized MergeAppend paths, and it
doesn't look like that is going to change anytime soon (as explained
in the comments for generate_orderedappend_paths), we don't need to
consider MergeAppendPath in this function.

This change won't make any measurable difference in performance; it's
just for clarity's sake.

Author: Richard Guo
Reviewed-by: Andrei Lepikhov
Discussion: https://postgr.es/m/CAMbWs4_Puie4DQ2ODvjQB_3CxYkUODnrJm8jn_ObMAcrjYNW7Q@mail.gmail.com

Branch
------
master

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

Modified Files
--------------
src/backend/optimizer/util/relnode.c | 28 +++++++---------------------
1 file changed, 7 insertions(+), 21 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2024-11-26 00:45:51 pgsql: pg_amcheck: Use CppAsString2() for relkind and relpersistence in
Previous Message Tom Lane 2024-11-25 23:10:00 pgsql: Fix NULLIF()'s handling of read-write expanded objects.