aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/instrument.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2007-05-17 19:35:08 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2007-05-17 19:35:08 +0000
commitb11123b675d9317f771d2bc44f72594de329098d (patch)
treebf3e5080edbe144393337623b932f0b5c1540459 /src/backend/executor/instrument.c
parent64058429c54afb49a679c58e5ff699640bd42502 (diff)
downloadpostgresql-b11123b675d9317f771d2bc44f72594de329098d.tar.gz
postgresql-b11123b675d9317f771d2bc44f72594de329098d.zip
Fix parameter recalculation for Limit nodes: during a ReScan call we must
recompute the limit/offset immediately, so that the updated values are available when the child's ReScan function is invoked. Add a regression test for this, too. Bug is new in HEAD (due to the bounded-sorting patch) so no need for back-patch. I did not do anything about merging this signaling with chgParam processing, but if we were to do that we'd still need to compute the updated values at this point rather than during the first ProcNode call. Per observation and test case from Greg Stark, though I didn't use his patch.
Diffstat (limited to 'src/backend/executor/instrument.c')
0 files changed, 0 insertions, 0 deletions