aboutsummaryrefslogtreecommitdiff
path: root/src/tutorial/funcs.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2007-02-06 22:49:42 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2007-02-06 22:49:42 +0000
commitbb65d51c2e1d9c941eec02edde77d76101fbe848 (patch)
tree862539216936e3d6181cadf5c15ae9b59417bf94 /src/tutorial/funcs.c
parent122680c51443b66fd9fc8687881ad571248516fa (diff)
downloadpostgresql-bb65d51c2e1d9c941eec02edde77d76101fbe848.tar.gz
postgresql-bb65d51c2e1d9c941eec02edde77d76101fbe848.zip
Fix an error in the original coding of holdable cursors: PersistHoldablePortal
thought that it didn't have to reposition the underlying tuplestore if the portal is atEnd. But this is not so, because tuplestores have separate read and write cursors ... and the read cursor hasn't moved from the start. This mistake explains bug #2970 from William Zhang. Note: the coding here is pretty inefficient, but given that no one has noticed this bug until now, I'd say hardly anyone uses the case where the cursor has been advanced before being persisted. So maybe it's not worth worrying about.
Diffstat (limited to 'src/tutorial/funcs.c')
0 files changed, 0 insertions, 0 deletions