Skip to content
Snippets Groups Projects
Select Git revision
  • benchmark-tools
  • postgres-lambda
  • master default
  • REL9_4_25
  • REL9_5_20
  • REL9_6_16
  • REL_10_11
  • REL_11_6
  • REL_12_1
  • REL_12_0
  • REL_12_RC1
  • REL_12_BETA4
  • REL9_4_24
  • REL9_5_19
  • REL9_6_15
  • REL_10_10
  • REL_11_5
  • REL_12_BETA3
  • REL9_4_23
  • REL9_5_18
  • REL9_6_14
  • REL_10_9
  • REL_11_4
23 results

trigger.c

  • Tom Lane's avatar
    b33f78df
    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
    History
    Fix trigger WHEN conditions when both BEFORE and AFTER triggers exist.
    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.