aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/numutils.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2010-11-18 11:53:49 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2010-11-18 11:54:34 -0500
commit48c348f86ce09c668af7cf271757c3f156f28344 (patch)
treeea8223183f60b7a8bdd0171dbd22df4c02c09408 /src/backend/utils/adt/numutils.c
parent1fc2d60d8c9d8096373e94a8f8c9b28d2082b7d3 (diff)
downloadpostgresql-48c348f86ce09c668af7cf271757c3f156f28344.tar.gz
postgresql-48c348f86ce09c668af7cf271757c3f156f28344.zip
Dept of second thoughts: don't try to push LIMIT below a SRF.
If we have Limit->Result->Sort, the Result might be projecting a tlist that contains a set-returning function. If so, it's possible for the SRF to sometimes return zero rows, which means we could need to fetch more than N rows from the Sort in order to satisfy LIMIT N. So top-N sorting cannot be used in this scenario.
Diffstat (limited to 'src/backend/utils/adt/numutils.c')
0 files changed, 0 insertions, 0 deletions