Push limit through subqueries to underlying sort, where possible.
Robert Haas <rhaas@postgresql.org>
Push limit through subqueries to underlying sort, where possible. Douglas Doole, reviewed by Ashutosh Bapat and by me. Minor formatting change by me. Discussion: http://postgr.es/m/CADE5jYLuugnEEUsyW6Q_4mZFYTxHxaVCQmGAsF0yiY8ZDggi-w@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/executor/nodeLimit.c | modified | +26 −0 |
| src/test/regress/expected/subselect.out | modified | +52 −0 |
| src/test/regress/sql/subselect.sql | modified | +46 −0 |
Discussion
- [PATCH] Push limit to sort through a subquery 50 messages · 2017-04-19 → 2017-08-25