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

command.c

Blame
    • Tom Lane's avatar
      778a21ca
      Tweak portal (cursor) code so that it will not call the executor again · 778a21ca
      Tom Lane authored
      when user does another FETCH after reaching end of data, or another
      FETCH backwards after reaching start.  This is needed because some plan
      nodes are not very robust about being called again after they've already
      returned NULL; for example, MergeJoin will crash in some states but not
      others.  While the ideal approach would be for them all to handle this
      correctly, it seems foolish to assume that no such bugs would creep in
      again once cleaned up.  Therefore, the most robust answer is to prevent
      the situation from arising at all.
      778a21ca
      History
      Tweak portal (cursor) code so that it will not call the executor again
      Tom Lane authored
      when user does another FETCH after reaching end of data, or another
      FETCH backwards after reaching start.  This is needed because some plan
      nodes are not very robust about being called again after they've already
      returned NULL; for example, MergeJoin will crash in some states but not
      others.  While the ideal approach would be for them all to handle this
      correctly, it seems foolish to assume that no such bugs would creep in
      again once cleaned up.  Therefore, the most robust answer is to prevent
      the situation from arising at all.
    src NaN GiB