postgresql/src
Tom Lane 133924e13e 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:50:50 +00:00
..
backend Fix potential failure when hashing the output of a subplan that produces 2010-07-28 04:50:50 +00:00
bin Show psql timing output even in quiet mode 2010-07-28 04:39:14 +00:00
include Fix potential failure when hashing the output of a subplan that produces 2010-07-28 04:50:50 +00:00
interfaces Make ECPG regression tests independent of standard_conforming_strings. 2010-07-20 01:57:19 +00:00
makefiles Allow for LDFLAGS_SL already having a value in Makefile.aix. 2010-07-06 03:41:02 +00:00
pl Ensure $_SHARED is declared in the main:: namespace, per bugs #5570 and #5571. 2010-07-27 04:18:28 +00:00
port Stamp HEAD as 9.1devel. 2010-07-09 04:10:58 +00:00
template Split the LDFLAGS make variable into two parts: LDFLAGS is now used for 2010-07-05 18:54:38 +00:00
test Fix potential failure when hashing the output of a subplan that produces 2010-07-28 04:50:50 +00:00
timezone pgindent run for 9.0, second run 2010-07-06 19:19:02 +00:00
tools Print each test_fsync description while test is running, rather than at 2010-07-13 17:00:50 +00:00
tutorial Remove copyright mention of Andrew Yu, per author's permission. 2010-02-02 18:52:02 +00:00
DEVELOPERS Replace a couple of references to files that no longer exist in the source 2009-05-04 08:08:47 +00:00
Makefile Rethink the way walreceiver is linked into the backend. Instead than shoving 2010-01-20 09:16:24 +00:00
Makefile.global.in Accept slightly grotty coding in Makefile.global in order to keep the -L 2010-07-06 22:03:05 +00:00
Makefile.shlib Still more third thoughts: when linking shared libraries, LDFLAGS probably 2010-07-06 03:55:33 +00:00
bcc32.mak Remove old-style win32 client-only visual c++ build infrastructure for everything except 2007-03-05 14:18:38 +00:00
nls-global.mk Avoid error from mkdir if no languages are to be installed 2010-05-13 14:35:28 +00:00
win32.mak Update supported standalone VC++ version to 7.1+ only, and fix 2007-08-03 10:47:11 +00:00