Dept of second thoughts: after studying index_getnext() a bit more I realize

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 01adc8afd55f3ae831e32b6ce19f7c61f4baac28
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2009-11-01T22:31:02Z
Releases: 8.4.2
Dept of second thoughts: after studying index_getnext() a bit more I realize
that it can scribble on scan->xs_ctup.t_self while following HOT chains,
so we can't rely on that to stay valid between hashgettuple() calls.
Introduce a private variable in HashScanOpaque, instead.

Files

PathChange+/−
src/backend/access/hash/hash.c modified +8 −3
src/backend/access/hash/hashsearch.c modified +3 −3
src/include/access/hash.h modified +5 −2