pgsql: Generalize the common code of adding sort before processing of g - Mailing list pgsql-committers

From Alexander Korotkov
Subject pgsql: Generalize the common code of adding sort before processing of g
Date
Msg-id E1rReKG-002U8f-WE@gemulon.postgresql.org
Whole thread Raw
List 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(-)


pgsql-committers by date:

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