pgsql: Rename find_em_expr_usable_for_sorting_rel.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Rename find_em_expr_usable_for_sorting_rel.
Date: 2021-04-20 15:37:45
Message-ID: E1lYsRd-0002uo-Ui@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Rename find_em_expr_usable_for_sorting_rel.

I didn't particularly like this function name, as it fails to
express what's going on. Also, returning the sort expression
alone isn't too helpful --- typically, a caller would also
need some other fields of the EquivalenceMember. But the
sole caller really only needs a bool result, so let's make
it "bool relation_can_be_sorted_early()".

Discussion: https://postgr.es/m/91f3ec99-85a4-fa55-ea74-33f85a5c651f@swarm64.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/7645376774c8532159f5f0f905e5e734d4ccbb18

Modified Files
--------------
src/backend/optimizer/path/allpaths.c | 21 ++++++++++-----------
src/backend/optimizer/path/equivclass.c | 27 +++++++++++++++------------
src/include/optimizer/paths.h | 7 +++----
3 files changed, 28 insertions(+), 27 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Emre Hasegeli 2021-04-20 15:49:14 Re: pgsql: Convert built-in SQL-language functions to SQL-standard-body sty
Previous Message Andrew Dunstan 2021-04-20 14:36:34 pgsql: Avoid unfortunate IPC::Run path caching in PostgresNode