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

copy.c

  • Tom Lane's avatar
    7fc0f062
    Add a WHEN clause to CREATE TRIGGER, allowing a boolean expression to be · 7fc0f062
    Tom Lane authored
    checked to determine whether the trigger should be fired.
    
    For BEFORE triggers this is mostly a matter of spec compliance; but for AFTER
    triggers it can provide a noticeable performance improvement, since queuing of
    a deferred trigger event and re-fetching of the row(s) at end of statement can
    be short-circuited if the trigger does not need to be fired.
    
    Takahiro Itagaki, reviewed by KaiGai Kohei.
    7fc0f062
    History
    Add a WHEN clause to CREATE TRIGGER, allowing a boolean expression to be
    Tom Lane authored
    checked to determine whether the trigger should be fired.
    
    For BEFORE triggers this is mostly a matter of spec compliance; but for AFTER
    triggers it can provide a noticeable performance improvement, since queuing of
    a deferred trigger event and re-fetching of the row(s) at end of statement can
    be short-circuited if the trigger does not need to be fired.
    
    Takahiro Itagaki, reviewed by KaiGai Kohei.