Rename find_em_expr_usable_for_sorting_rel.
Tom Lane <tgl@sss.pgh.pa.us>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/optimizer/path/allpaths.c | modified | +10 −11 |
| src/backend/optimizer/path/equivclass.c | modified | +15 −12 |
| src/include/optimizer/paths.h | modified | +3 −4 |
Discussion
- "could not find pathkey item to sort" for TPC-DS queries 94-96 29 messages · 2021-04-12 → 2021-04-20