aboutsummaryrefslogtreecommitdiff
path: root/contrib/intarray/_int_gist.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2007-02-06 22:49:36 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2007-02-06 22:49:36 +0000
commite41cb89a035df84df1252aa6ad477c15ecdca118 (patch)
treeae97e4707928d472e35c9741c4f7f037e592a4ad /contrib/intarray/_int_gist.c
parentc60125a9be51f98cdcda8de264f5bccf106788d8 (diff)
downloadpostgresql-e41cb89a035df84df1252aa6ad477c15ecdca118.tar.gz
postgresql-e41cb89a035df84df1252aa6ad477c15ecdca118.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 'contrib/intarray/_int_gist.c')
0 files changed, 0 insertions, 0 deletions