]> granicus.if.org Git - postgresql/commit
Improve tuplestore.c to support multiple concurrent read positions.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 1 Oct 2008 19:51:50 +0000 (19:51 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 1 Oct 2008 19:51:50 +0000 (19:51 +0000)
commitdad4cb6258382e99409c3e0673f1a5ec5b8bf03f
treefc13e11ae4ec12a824befec58c61fe8e5b398197
parent233f135144ffc02512490eaffdb2575284a3af9d
Improve tuplestore.c to support multiple concurrent read positions.
This facility replaces the former mark/restore support but is otherwise
upward-compatible with previous uses.  It's expected to be needed for
single evaluation of CTEs and also for window functions, so I'm committing
it separately instead of waiting for either one of those patches to be
finished.  Per discussion with Greg Stark and Hitoshi Harada.

Note: I removed nodeFunctionscan's mark/restore support, instead of bothering
to update it for this change, because it was dead code anyway.
src/backend/executor/execAmi.c
src/backend/executor/nodeFunctionscan.c
src/backend/executor/nodeMaterial.c
src/backend/utils/sort/tuplestore.c
src/include/executor/nodeFunctionscan.h
src/include/nodes/execnodes.h
src/include/utils/tuplestore.h