• Fujii Masao's avatar
    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
command.c 66.2 KB