GUC changes to log query durations
Started by Bruce Momjianalmost 24 years ago1 messagespatches
The attached patch adds 'log_duration' to GUC, showing the duration of
each query. It is to be used with LOG_PID and LOG_STATEMENT:
[22602]: LOG: duration: 0.079464 sec
[22602]: LOG: duration: 0.079464 sec
[22602]: LOG: duration: 0.079464 sec
[22602]: LOG: duration: 0.079464 sec
The patch also changes debug_print_query to log_statement and
show_query_statistics to show_statement_statistics. I believe Peter has
suggested similar changes recently, making the debug_print_query a log_
option because it really isn't for debugging the server, and changing
'query' to 'statement' to be more precise.
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073