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

common.h

Blame
    • Fujii Masao's avatar
      f6f654ff
      Allow \watch to display query execution time if \timing is enabled. · f6f654ff
      Fujii Masao authored
      Previously \watch could not display the query execution time even
      when \timing was enabled because it used PSQLexec instead of
      SendQuery and that function didn't support \timing. This patch
      introduces PSQLexecWatch and changes \watch so as to use it, instead.
      PSQLexecWatch is the function to run the query, print its results and
      display how long it took (only when \timing is enabled).
      
      This patch also changes --echo-hidden so that it doesn't print
      the query that \watch executes. Since \watch cannot execute
      backslash command queries, they should not be printed even
      when --echo-hidden is set.
      
      Patch by me, review by Heikki Linnakangas and Michael Paquier
      f6f654ff
      History
      Allow \watch to display query execution time if \timing is enabled.
      Fujii Masao authored
      Previously \watch could not display the query execution time even
      when \timing was enabled because it used PSQLexec instead of
      SendQuery and that function didn't support \timing. This patch
      introduces PSQLexecWatch and changes \watch so as to use it, instead.
      PSQLexecWatch is the function to run the query, print its results and
      display how long it took (only when \timing is enabled).
      
      This patch also changes --echo-hidden so that it doesn't print
      the query that \watch executes. Since \watch cannot execute
      backslash command queries, they should not be printed even
      when --echo-hidden is set.
      
      Patch by me, review by Heikki Linnakangas and Michael Paquier