pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Rename find_em_expr_usable_for_sorting_rel.
Date: Tue, 20 Apr 2021 15:37:45 +0000
Message-ID: <E1lYsRd-0002uo-Ui@gemulon.postgresql.org> (raw)

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(-)



Message-ID: <E1lYsRd-0002uo-Ui@gemulon.postgresql.org>
Permalink:  ../E1lYsRd-0002uo-Ui@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1lYsRd-0002uo-Ui@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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Rename find_em_expr_usable_for_sorting_rel.
  In-Reply-To: <E1lYsRd-0002uo-Ui@gemulon.postgresql.org>
  References: <E1lYsRd-0002uo-Ui@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