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

pgbench.c

Blame
    • Heikki Linnakangas's avatar
      9031ff91
      Fix pgbench progress report behaviour when pgbench or a query gets stuck. · 9031ff91
      Heikki Linnakangas authored
      There were two issues here. First, if a query got stuck so that it took
      e.g. 5 seconds, and progress interval was 1 second, no progress reports were
      printed until the query returned. Fix so that we wake up specifically to
      print the progress report. Secondly, if pgbench got stuck so that it would
      nevertheless not print a progress report on time, and enough time passes
      that it's already time to print the next progress report, just skip the one
      that was missed. Before this patch, it would print the missed one with 0 TPS
      immediately after the previous one.
      
      Fabien Coelho. Backpatch to 9.4, where progress reports were added.
      9031ff91
      History
      Fix pgbench progress report behaviour when pgbench or a query gets stuck.
      Heikki Linnakangas authored
      There were two issues here. First, if a query got stuck so that it took
      e.g. 5 seconds, and progress interval was 1 second, no progress reports were
      printed until the query returned. Fix so that we wake up specifically to
      print the progress report. Secondly, if pgbench got stuck so that it would
      nevertheless not print a progress report on time, and enough time passes
      that it's already time to print the next progress report, just skip the one
      that was missed. Before this patch, it would print the missed one with 0 TPS
      immediately after the previous one.
      
      Fabien Coelho. Backpatch to 9.4, where progress reports were added.
    pgbench.c 101.47 KiB