postgresql/src/include/nodes
Tom Lane 581fe9331d 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.
2010-07-28 04:51:14 +00:00
..
bitmapset.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
execnodes.h Fix potential failure when hashing the output of a subplan that produces 2010-07-28 04:51:14 +00:00
makefuncs.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
memnodes.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
nodeFuncs.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
nodes.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
params.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
parsenodes.h Fix CREATE TABLE ... LIKE ... INCLUDING INDEXES to not cause unwanted 2008-02-07 17:09:51 +00:00
pg_list.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
plannodes.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
primnodes.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
print.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
readfuncs.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
relation.h Fix planner to restore its previous level of intelligence about pushing 2009-04-16 20:42:28 +00:00
tidbitmap.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
value.h Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00