Re: ORDER BY pushdowns seem broken in postgres_fdw
Ronan Dunklau <ronan.dunklau@aiven.io>
From: Ronan Dunklau <ronan.dunklau@aiven.io>
To: David Rowley <dgrowleyml@gmail.com>
Cc: Ranier Vilela <ranier.vf@gmail.com>,
PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>,
Robert Haas <robertmhaas@gmail.com>,
Jeevan Chalke <jeevan.chalke@enterprisedb.com>,
Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>
Date: 2021-07-22T08:49:14Z
Lists: pgsql-hackers
Attachments
- v5_fix_postgresfdw_orderby_handling.patch (text/x-patch)
Le jeudi 22 juillet 2021, 09:44:54 CEST David Rowley a écrit : > +-- This will not be pushed either > +explain verbose select * from ft2 order by c1 using operator(public.<^); > + QUERY PLAN > +--------------------------------------------------------------------------- > ---- + Sort (cost=190.83..193.33 rows=1000 width=142) > > > Can you also use explain (verbose, costs off) the same as the other > tests in that area. Having the costs there would never survive a run > of the buildfarm. Different hardware will produce different costs, e.g > 32-bit hardware might cost cheaper due to narrower widths. > Sorry about that. Here it is. Regards, -- Ronan Dunklau
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