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

nodeSubplan.c

  • Tom Lane's avatar
    d14241c2
    Fix memory leak in ARRAY(SELECT ...) subqueries. · d14241c2
    Tom Lane authored
    Repeated execution of an uncorrelated ARRAY_SUBLINK sub-select (which
    I think can only happen if the sub-select is embedded in a larger,
    correlated subquery) would leak memory for the duration of the query,
    due to not reclaiming the array generated in the previous execution.
    Per bug #6698 from Armando Miraglia.  Diagnosis and fix idea by Heikki,
    patch itself by me.
    
    This has been like this all along, so back-patch to all supported versions.
    d14241c2
    History
    Fix memory leak in ARRAY(SELECT ...) subqueries.
    Tom Lane authored
    Repeated execution of an uncorrelated ARRAY_SUBLINK sub-select (which
    I think can only happen if the sub-select is embedded in a larger,
    correlated subquery) would leak memory for the duration of the query,
    due to not reclaiming the array generated in the previous execution.
    Per bug #6698 from Armando Miraglia.  Diagnosis and fix idea by Heikki,
    patch itself by me.
    
    This has been like this all along, so back-patch to all supported versions.