summaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeAgg.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2010-12-01 00:53:23 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2010-12-01 00:53:23 -0500
commit0a85bb237e63c0e0634ed029cbc4916b0eceeea4 (patch)
treea013d11188b4087aaf3fbd9c894516e7e141b294 /src/backend/executor/nodeAgg.c
parent09425f89e764beabbdd30cc877b3de96f5d3d2b9 (diff)
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.
Diffstat (limited to 'src/backend/executor/nodeAgg.c')
0 files changed, 0 insertions, 0 deletions