Remove ancient restriction that LIMIT/OFFSET can't contain a sub-select.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 15 Feb 2008 17:19:46 +0000 (17:19 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 15 Feb 2008 17:19:46 +0000 (17:19 +0000)
commitcc80f0a340cdeba7716c5e128346481b82cc6949
tree604232ad7e38cb47c469c92e61a343d1d7538a08
parentefac2796e64f50f899c49524289d92afa89f1fc8
Remove ancient restriction that LIMIT/OFFSET can't contain a sub-select.
This was probably protecting some implementation limitation when it was
put in, but as far as I can tell the planner and executor have no such
assumption anymore; the case seems to work fine.  Per a gripe from
Grzegorz Jaskiewicz.
src/backend/parser/parse_clause.c