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

plpython_trigger.out

Blame
    • Tom Lane's avatar
      308711af
      Fix plpython's handling of functions used as triggers on multiple tables. · 308711af
      Tom Lane authored
      plpython tried to use a single cache entry for a trigger function, but it
      needs a separate cache entry for each table the trigger is applied to,
      because there is table-dependent data in there.  This was done correctly
      before 9.1, but commit 46211da1 broke it
      by simplifying the lookup key from "function OID and triggered table OID"
      to "function OID and is-trigger boolean".  Go back to using both OIDs
      as the lookup key.  Per bug report from Sandro Santilli.
      
      Andres Freund
      308711af
      History
      Fix plpython's handling of functions used as triggers on multiple tables.
      Tom Lane authored
      plpython tried to use a single cache entry for a trigger function, but it
      needs a separate cache entry for each table the trigger is applied to,
      because there is table-dependent data in there.  This was done correctly
      before 9.1, but commit 46211da1 broke it
      by simplifying the lookup key from "function OID and triggered table OID"
      to "function OID and is-trigger boolean".  Go back to using both OIDs
      as the lookup key.  Per bug report from Sandro Santilli.
      
      Andres Freund
    plpython_trigger.out 22.38 KiB