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

From: Alexander Korotkov <akorotkov(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Generalize the common code of adding sort before processing of g
Date: 2024-01-21 20:21:52
Message-ID: E1rReKG-002U8f-WE@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Alexander Korotkov 2024-01-21 20:21:53 pgsql: Explore alternative orderings of group-by pathkeys during optimi
Previous Message Tom Lane 2024-01-20 22:54:20 pgsql: Add hint about not qualifying UPDATE...SET target with relation