• Tom Lane's avatar
    Fix trigger WHEN conditions when both BEFORE and AFTER triggers exist. · b33f78df
    Tom Lane authored
    Due to tuple-slot mismanagement, evaluation of WHEN conditions for AFTER
    ROW UPDATE triggers could crash if there had been a BEFORE ROW trigger
    fired for the same update.  Fix by not trying to overload the use of
    estate->es_trig_tuple_slot.  Per report from Yoran Heling.
    
    Back-patch to 9.0, when trigger WHEN conditions were introduced.
    b33f78df
execMain.c 74.1 KB