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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 4ff9c8d) | patch
Fix potential failure when hashing the output of a subplan that produces
2010年7月28日 04:50:50 +0000 (04:50 +0000)
2010年7月28日 04:50:50 +0000 (04:50 +0000)
commit 133924e13e004db8979424bf5436e21b0a09a069
Fix potential failure when hashing the output of a subplan that produces
a pass-by-reference datatype with a nontrivial projection step.
We were using the same memory context for the projection operation as for
the temporary context used by the hashtable routines in execGrouping.c.
However, the hashtable routines feel free to reset their temp context at
any time, which'd lead to destroying input data that was still needed.
Report and diagnosis by Tao Ma.

Back-patch to 8.1, where the problem was introduced by the changes that
allowed us to work with "virtual" tuples instead of materializing intermediate
tuple values everywhere. The earlier code looks quite similar, but it doesn't
suffer the problem because the data gets copied into another context as a
result of having to materialize ExecProject's output tuple.
src/backend/executor/nodeSubplan.c diff | blob | blame | history
src/include/nodes/execnodes.h diff | blob | blame | history
src/test/regress/expected/subselect.out diff | blob | blame | history
src/test/regress/sql/subselect.sql diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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