• Tom Lane's avatar
    Fix a couple of places in execMain that erroneously assumed that SELECT FOR · f593f623
    Tom Lane authored
    UPDATE/SHARE couldn't occur as a subquery in a query with a non-SELECT
    top-level operation.  Symptoms included outright failure (as in report from
    Mark Mielke) and silently neglecting to take the requested row locks.
    
    Back-patch to 8.3, because the visible failure in the INSERT ... SELECT case
    is a regression from 8.2.  I'm a bit hesitant to back-patch further given the
    lack of field complaints.
    f593f623
execMain.c 76.2 KB