Don't try to constant-fold functions returning RECORD. We were never
authorTom Lane
Sun, 3 Jul 2005 21:14:18 +0000 (21:14 +0000)
committerTom Lane
Sun, 3 Jul 2005 21:14:18 +0000 (21:14 +0000)
commitae9a07bf9e34f48ddfc05e187b9a5dde963b3dee
treeb8e68155089415805ac9338e709e914c803e79f6
parent85884cb1de2de0640ec1d7540487195a34538a54
Don't try to constant-fold functions returning RECORD.  We were never
able to do this before, but I had tried to make an exception for functions
with OUT parameters.  Michael Fuhr found one problem with it already, and
I found another, which was it didn't work for strict functions with a
NULL input.  While both of these could be worked around, the probability
that there are more gotchas seems high; I think prudence dictates just
reverting to the former behavior for now.  Accordingly, remove the kluge
added to get_expr_result_type() for Michael's case.
src/backend/optimizer/util/clauses.c
src/backend/utils/fmgr/funcapi.c