https://github.com/postgres/postgres
Revision b0e2092319102c9a749ef4afd5efbdc37fb31b83 authored by Tom Lane on 01 December 2010, 05:53:39 UTC, committed by Tom Lane on 01 December 2010, 05:53:39 UTC
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.
1 parent cfb6ac6
History
Tip revision: b0e2092319102c9a749ef4afd5efbdc37fb31b83 authored by Tom Lane on 01 December 2010, 05:53:39 UTC
Prevent inlining a SQL function with multiple OUT parameters.
Tip revision: b0e2092
File Mode Size
config
contrib
doc
src
.gitignore -rw-r--r-- 233 bytes
COPYRIGHT -rw-r--r-- 1.2 KB
GNUmakefile.in -rw-r--r-- 3.7 KB
Makefile -rw-r--r-- 1.4 KB
README -rw-r--r-- 2.0 KB
README.git -rw-r--r-- 820 bytes
aclocal.m4 -rw-r--r-- 445 bytes
configure -rwxr-xr-x 693.8 KB
configure.in -rw-r--r-- 47.0 KB

README

back to top