pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Don't search for volatile expr in find_em_expr_usable_for_sortin
2+ messages / 1 participants
[nested] [flat]

* pgsql: Don't search for volatile expr in find_em_expr_usable_for_sortin
@ 2020-12-21 19:47  Tomas Vondra <tomas.vondra@postgresql.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Tomas Vondra @ 2020-12-21 19:47 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: Don't search for volatile expr in find_em_expr_usable_for_sortin
@ 2020-12-21 19:48  Tomas Vondra <tomas.vondra@postgresql.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Tomas Vondra @ 2020-12-21 19:48 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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
------
REL_13_STABLE

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

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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2020-12-21 19:48 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-12-21 19:47 pgsql: Don't search for volatile expr in find_em_expr_usable_for_sortin Tomas Vondra <tomas.vondra@postgresql.org>
2020-12-21 19:48 pgsql: Don't search for volatile expr in find_em_expr_usable_for_sortin Tomas Vondra <tomas.vondra@postgresql.org>

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