pgsql: Push limit through subqueries to underlying sort, where possible

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Push limit through subqueries to underlying sort, where possible
Date: 2017-08-21 18:42:56
Message-ID: E1djrf6-0003Bn-0y@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1f6d515a67ec98194c23a5db25660856c9aab944

Modified Files
--------------
src/backend/executor/nodeLimit.c | 26 +++++++++++++++++
src/test/regress/expected/subselect.out | 52 +++++++++++++++++++++++++++++++++
src/test/regress/sql/subselect.sql | 46 +++++++++++++++++++++++++++++
3 files changed, 124 insertions(+)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2017-08-21 23:40:03 pgsql: Don't install ICU collation keyword variants
Previous Message Simon Riggs 2017-08-21 06:41:52 Re: [COMMITTERS] pgsql: Account for catalog snapshot in PGXACT->xmin updates.