• Tom Lane's avatar
    Fix "cannot handle unplanned sub-select" error that can occur when a · d4d32eef
    Tom Lane authored
    sub-select contains a join alias reference that expands into an expression
    containing another sub-select.  Per yesterday's report from Merlin Moncure
    and subsequent off-list investigation.
    
    Back-patch to 7.4.  Older versions didn't attempt to flatten sub-selects in
    ways that would trigger this problem.
    d4d32eef
var.c 23.5 KB