Don't search for volatile expr in find_em_expr_usable_for_sorting_rel
authorTomas Vondra
Mon, 21 Dec 2020 18:37:14 +0000 (19:37 +0100)
committerTomas Vondra
Mon, 21 Dec 2020 19:23:38 +0000 (20:23 +0100)
commitaa97890b6ec2ad07700c6e4825022ae3979ece7f
tree42cadcd6fa00f3cc88c6babfeb6bb09efb06bf84
parentd0167631e8b7388b78203c6798621f98beed93d5
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
src/backend/optimizer/path/equivclass.c