• Tom Lane's avatar
    Fix more problems with rewriter failing to set Query.hasSubLinks when inserting · 96a25d39
    Tom Lane authored
    a SubLink expression into a rule query.  We missed cases where the original
    query contained a sub-SELECT in a function in FROM, a multi-row VALUES list,
    or a RETURNING list.  Per bug #4434 from Dean Rasheed and subsequent
    investigation.
    
    Back-patch to 8.1; older releases don't have the issue because they didn't
    try to be smart about setting hasSubLinks only when needed.
    96a25d39
rewriteHandler.c 55.3 KB