Thread: pgsql: Generalize the common code of adding sort before processing of g

pgsql: Generalize the common code of adding sort before processing of g

From
Alexander Korotkov
Date:
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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/7ab80ac1caf9f48064190802e1068ef89e2883c4

Modified Files
--------------
src/backend/optimizer/plan/planner.c | 228 ++++++++++++-----------------------
1 file changed, 80 insertions(+), 148 deletions(-)