Re: ORDER BY pushdowns seem broken in postgres_fdw
David Rowley <dgrowleyml@gmail.com>
From: David Rowley <dgrowleyml@gmail.com>
To: Ronan Dunklau <ronan.dunklau@aiven.io>
Cc: Robert Haas <robertmhaas@gmail.com>,
Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>, Ranier Vilela <ranier.vf@gmail.com>, PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>
Date: 2021-07-27T06:05:19Z
Lists: pgsql-hackers
On Tue, 27 Jul 2021 at 17:20, Ronan Dunklau <ronan.dunklau@aiven.io> wrote: > One thing in particular I was not sure about was how to fetch the operator > associated with the path key ordering. I chose to go through the opfamily > recorded on the member, but maybe locating the original SortGroupClause by its > ref and getting the operator number here woud have worked. It seems more > straightforward like this though. I spent a bit of time trying to find a less invasive way of doing that and didn't manage to come up with anything. I'm interested to hear if anyone else has any better ideas. David
Commits
-
Fix postgres_fdw to check shippability of sort clauses properly.
- f3dd9fe1dd92 15.0 landed
- b9eb0412ffb8 11.16 landed
- 9f9489aa2eef 14.3 landed
- 989d3e4a2957 12.11 landed
- 79df1d20c59c 13.7 landed
- 728fc0f9a2dd 10.21 landed
-
postgres_fdw: Add ORDER BY to some remote SQL queries.
- f18c944b6137 9.6.0 cited