postgresql/src/backend
Tom Lane 225f0aa3df Prevent inlining a SQL function with multiple OUT parameters.
There were corner cases in which the planner would attempt to inline such
a function, which would result in a failure at runtime due to loss of
information about exactly what the result record type is.  Fix by disabling
inlining when the function's recorded result type is RECORD.  There might
be some sub-cases where inlining could still be allowed, but this is a
simple and backpatchable fix, so leave refinements for another day.
Per bug #5777 from Nate Carson.

Back-patch to all supported branches.  8.1 happens to avoid a core-dump
here, but it still does the wrong thing.
2010-12-01 00:53:18 -05:00
..
access Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
bootstrap Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
catalog Object access hook framework, with post-creation hook. 2010-11-25 11:50:13 -05:00
commands Add more ALTER <object> .. SET SCHEMA commands. 2010-11-26 17:31:54 -05:00
executor Prevent inlining a SQL function with multiple OUT parameters. 2010-12-01 00:53:18 -05:00
foreign Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
lib Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
libpq Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
main Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
nodes Create the system catalog infrastructure needed for KNNGIST. 2010-11-24 14:22:17 -05:00
optimizer Prevent inlining a SQL function with multiple OUT parameters. 2010-12-01 00:53:18 -05:00
parser Add more ALTER <object> .. SET SCHEMA commands. 2010-11-26 17:31:54 -05:00
po Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
port Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
postmaster Fix leakage of cost_limit when multiple autovacuum workers are active. 2010-11-19 22:29:44 -05:00
regex Fix comparisons of pointers with zero to compare with NULL instead. 2010-10-29 15:51:52 -04:00
replication Improved parallel make support 2010-11-12 22:15:16 +02:00
rewrite Object access hook framework, with post-creation hook. 2010-11-25 11:50:13 -05:00
snowball Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
storage Move call to GetTopTransactionId() earlier in LockAcquire(), 2010-11-29 01:08:02 +00:00
tcop Add more ALTER <object> .. SET SCHEMA commands. 2010-11-26 17:31:54 -05:00
tsearch Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
utils Simplify and speed up mapping of index opfamilies to pathkeys. 2010-11-29 12:30:43 -05:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
common.mk Improved parallel make support 2010-11-12 22:15:16 +02:00
Makefile Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
nls.mk Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00