Generalize the common code of adding sort before processing of grouping
authorAlexander Korotkov <akorotkov@postgresql.org>
Sun, 21 Jan 2024 20:19:47 +0000 (22:19 +0200)
committerAlexander Korotkov <akorotkov@postgresql.org>
Sun, 21 Jan 2024 20:19:47 +0000 (22:19 +0200)
commit7ab80ac1caf9f48064190802e1068ef89e2883c4
tree4484a6130a32f02f20036eccf74b1577db467862
parent58447e31890ace0d552a4bf693744bef3a5335e6
Generalize the common code of adding sort before processing of grouping

Extract the repetitive code pattern into a new function make_ordered_path().

Discussion: https://postgr.es/m/CAPpHfdtzaVa7S4onKy3YvttF2rrH5hQNHx9HtcSTLbpjx%2BMJ%2Bw%40mail.gmail.com
Author: Andrei Lepikhov
src/backend/optimizer/plan/planner.c