• Tom Lane's avatar
    Copy sub-Query nodes to avoid trouble when same sub-Query is linked to · 465a3b0a
    Tom Lane authored
    multiple times in the parsetree (can happen in COALESCE or BETWEEN
    contexts, for example).  This is a pretty grotty solution --- it will
    do for now, but perhaps we can do better when we redesign querytrees.
    What we need is a consistent policy about whether querytrees should be
    considered read-only structures or not ...
    465a3b0a
subselect.c 20.5 KB