]> granicus.if.org Git - postgresql/commit
Push limit through subqueries to underlying sort, where possible.
authorRobert Haas <rhaas@postgresql.org>
Mon, 21 Aug 2017 18:43:01 +0000 (14:43 -0400)
committerRobert Haas <rhaas@postgresql.org>
Mon, 21 Aug 2017 18:19:44 +0000 (14:19 -0400)
commit1f6d515a67ec98194c23a5db25660856c9aab944
tree11ea85be0cf33a654d1578baf13530422cf938e3
parent79ccd7cbd5ca44bee0191d12e9e65abf702899e7
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
src/backend/executor/nodeLimit.c
src/test/regress/expected/subselect.out
src/test/regress/sql/subselect.sql