pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tomas Vondra <tomas.vondra@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Don't search for volatile expr in find_em_expr_usable_for_sortin
Date: Mon, 21 Dec 2020 19:47:46 +0000
Message-ID: <E1krR9m-0006Ho-7x@gemulon.postgresql.org> (raw)

Don't search for volatile expr in find_em_expr_usable_for_sorting_rel

While prepare_sort_from_pathkeys has to be concerned about matching up
a volatile expression to the proper tlist entry, we don't need to do
that in find_em_expr_usable_for_sorting_rel becausee such a sort will
have to be postponed anyway.

Author: James Coleman
Reviewed-by: Tomas Vondra
Backpatch-through: 13
Discussion: https://postgr.es/m/CAAaqYe8cK3g5CfLC4w7bs%3DhC0mSksZC%3DH5M8LSchj5e5OxpTAg%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/9aff4dc01fbb9e126efafd839ae8541362328f1a

Modified Files
--------------
src/backend/optimizer/path/equivclass.c | 28 +++++-----------------------
1 file changed, 5 insertions(+), 23 deletions(-)



view thread (2+ messages)  latest in thread

Message-ID: <E1krR9m-0006Ho-7x@gemulon.postgresql.org>
Permalink:  ../E1krR9m-0006Ho-7x@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1krR9m-0006Ho-7x@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: tomas.vondra@postgresql.org
  Subject: Re: pgsql: Don't search for volatile expr in find_em_expr_usable_for_sortin
  In-Reply-To: <E1krR9m-0006Ho-7x@gemulon.postgresql.org>
  References: <E1krR9m-0006Ho-7x@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