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

nodeGather.c

Blame
    • Robert Haas's avatar
      bfc78d71
      Rewrite interaction of parallel mode with parallel executor support. · bfc78d71
      Robert Haas authored
      In the previous coding, before returning from ExecutorRun, we'd shut
      down all parallel workers.  This was dead wrong if ExecutorRun was
      called with a non-zero tuple count; it had the effect of truncating
      the query output.  To fix, give ExecutePlan control over whether to
      enter parallel mode, and have it refuse to do so if the tuple count
      is non-zero.  Rewrite the Gather logic so that it can cope with being
      called outside parallel mode.
      
      Commit 7aea8e4f is largely to blame
      for this problem, though this patch modifies some subsequently-committed
      code which relied on the guarantees it purported to make.
      bfc78d71
      History
      Rewrite interaction of parallel mode with parallel executor support.
      Robert Haas authored
      In the previous coding, before returning from ExecutorRun, we'd shut
      down all parallel workers.  This was dead wrong if ExecutorRun was
      called with a non-zero tuple count; it had the effect of truncating
      the query output.  To fix, give ExecutePlan control over whether to
      enter parallel mode, and have it refuse to do so if the tuple count
      is non-zero.  Rewrite the Gather logic so that it can cope with being
      called outside parallel mode.
      
      Commit 7aea8e4f is largely to blame
      for this problem, though this patch modifies some subsequently-committed
      code which relied on the guarantees it purported to make.
    nodeGather.c 7.54 KiB