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

ri_triggers.c

  • Tom Lane's avatar
    cf59277a
    Remove unnecessary opening of other relation in RI_FKey_keyequal_upd_pk · cf59277a
    Tom Lane authored
    and RI_FKey_keyequal_upd_fk, as well as no-longer-needed calls of
    ri_BuildQueryKeyFull.  Aside from saving a few cycles, this avoids needless
    deadlock risks when an update is not changing the columns that participate
    in an RI constraint.  Per a gripe from Alexey Nalbat.
    
    Back-patch to 8.3.  Earlier releases did have a need to open the other
    relation due to the way in which they retrieved information about the RI
    constraint, so this problem unfortunately can't easily be improved pre-8.3.
    
    Tom Lane and Stephan Szabo
    cf59277a
    History
    Remove unnecessary opening of other relation in RI_FKey_keyequal_upd_pk
    Tom Lane authored
    and RI_FKey_keyequal_upd_fk, as well as no-longer-needed calls of
    ri_BuildQueryKeyFull.  Aside from saving a few cycles, this avoids needless
    deadlock risks when an update is not changing the columns that participate
    in an RI constraint.  Per a gripe from Alexey Nalbat.
    
    Back-patch to 8.3.  Earlier releases did have a need to open the other
    relation due to the way in which they retrieved information about the RI
    constraint, so this problem unfortunately can't easily be improved pre-8.3.
    
    Tom Lane and Stephan Szabo