• Tom Lane's avatar
    Fix inline_set_returning_function() to preserve the invalItems list properly. · ef55e294
    Tom Lane authored
    This avoids a possible crash when inlining a SRF whose argument list
    contains a reference to an inline-able user function.  The crash is quite
    reproducible with CLOBBER_FREED_MEMORY enabled, but would be less certain
    in a production build.  Problem introduced in 9.0 by the named-arguments
    patch, which requires invoking eval_const_expressions() before we can try
    to inline a SRF.  Per report from Brendan Jurd.
    ef55e294
clauses.c 129 KB