Generalize the common code of adding sort before processing of grouping

Alexander Korotkov <akorotkov@postgresql.org>

Commit: 7ab80ac1caf9f48064190802e1068ef89e2883c4
Author: Alexander Korotkov <akorotkov@postgresql.org>
Date: 2024-01-21T20:19:47Z
Releases: 17.0
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

Files

PathChange+/−
src/backend/optimizer/plan/planner.c modified +80 −148

Discussion