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
    b11123b6
    Fix parameter recalculation for Limit nodes: during a ReScan call we must · b11123b6
    Tom Lane authored
    recompute the limit/offset immediately, so that the updated values are
    available when the child's ReScan function is invoked.  Add a regression
    test for this, too.  Bug is new in HEAD (due to the bounded-sorting patch)
    so no need for back-patch.
    
    I did not do anything about merging this signaling with chgParam processing,
    but if we were to do that we'd still need to compute the updated values
    at this point rather than during the first ProcNode call.
    
    Per observation and test case from Greg Stark, though I didn't use his patch.
    b11123b6
    History
    Fix parameter recalculation for Limit nodes: during a ReScan call we must
    Tom Lane authored
    recompute the limit/offset immediately, so that the updated values are
    available when the child's ReScan function is invoked.  Add a regression
    test for this, too.  Bug is new in HEAD (due to the bounded-sorting patch)
    so no need for back-patch.
    
    I did not do anything about merging this signaling with chgParam processing,
    but if we were to do that we'd still need to compute the updated values
    at this point rather than during the first ProcNode call.
    
    Per observation and test case from Greg Stark, though I didn't use his patch.