git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 6c0c283) | patch
Fix confusion on different kinds of slots in IndexOnlyScans.
Thu, 6 Jun 2019 06:46:52 +0000 (09:46 +0300)
Thu, 6 Jun 2019 06:46:52 +0000 (09:46 +0300)
commit cd96389d713787b025c84869ba417c6f2f008a86
Fix confusion on different kinds of slots in IndexOnlyScans.

We used the same slot to store a tuple from the index, and to store a
tuple from the table. That's not OK. It worked with the heap, because
heapam_getnextslot() stores a HeapTuple to the slot, and doesn't care how
large the tts_values/nulls arrays are. But when I played with a toy table
AM implementation that used a virtual tuple, it caused memory overruns.

In the passing, tidy up comments on the ioss_PscanLen fields.
src/backend/executor/nodeIndexonlyscan.c diff | blob | blame | history
src/include/nodes/execnodes.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /