aboutsummaryrefslogtreecommitdiff
path: root/src/backend/lib/binaryheap.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2017-08-25 09:05:17 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2017-08-25 09:05:17 -0400
commit3f4c7917b3bc8b421c0c85cb9995974c55e7232b (patch)
treedb996d17bee3c728f34978e740a6c05e2818a2ba /src/backend/lib/binaryheap.c
parentd36f7efb39e1b9613193b2e12717dbe2418ddae5 (diff)
downloadpostgresql-3f4c7917b3bc8b421c0c85cb9995974c55e7232b.tar.gz
postgresql-3f4c7917b3bc8b421c0c85cb9995974c55e7232b.zip
Code review for pushing LIMIT through subqueries.
Minor improvements for commit 1f6d515a6. We do not need the (rather expensive) test for SRFs in the targetlist, because since v10 any such SRFs would appear in separate ProjectSet nodes. Also, make the code look more like the existing cases by turning it into a simple recursion --- the argument that there might be some performance benefit to contorting the code seems unfounded to me, especially since any good compiler should turn the tail-recursion into iteration anyway. Discussion: http://postgr.es/m/CADE5jYLuugnEEUsyW6Q_4mZFYTxHxaVCQmGAsF0yiY8ZDggi-w@mail.gmail.com
Diffstat (limited to 'src/backend/lib/binaryheap.c')
0 files changed, 0 insertions, 0 deletions