Some dead code in get_param_path_clause_serials()

Richard Guo <guofenglinux@gmail.com>

From: Richard Guo <guofenglinux@gmail.com>
To: PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2024-11-13T09:34:36Z
Lists: pgsql-hackers

Attachments

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.  Is it worth removing the
related code, as attached?

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

Thanks
Richard

Commits

  1. Remove dead code in get_param_path_clause_serials()