Handling of ORDER BY by postgres_fdw

From: Antonin Houska <ah(at)cybertec(dot)at>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Handling of ORDER BY by postgres_fdw
Date: 2019-02-07 18:33:51
Message-ID: 11807.1549564431@localhost
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

While reviewing [1] it occurred to me that it might not be clean that
postgresGetForeignUpperPaths() adds ORDER BY to the remote query when it
receives stage=UPPERREL_GROUP_AGG. Shouldn't that only happen for
UPPERREL_ORDERED? Thus the processing of UPPERREL_ORDERED would have to be
able to handle grouping too, so some refactoring would be needed. Do I
misunderstand anything?

[1] https://commitfest.postgresql.org/22/1950/

--
Antonin Houska
Cybertec Schönig & Schönig GmbH
Gröhrmühlgasse 26, A-2700 Wiener Neustadt
Web: https://www.cybertec-postgresql.com

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2019-02-07 18:36:29 Re: bug tracking system
Previous Message David Fetter 2019-02-07 17:53:38 Re: use Getopt::Long for catalog scripts