changeset 39 | 0cef3540b69f |
parent 27 | 5fb4883604d6 |
child 44 | 4fe39c59c515 |
--- a/longqueries.py Thu May 31 11:28:41 2012 +0200 +++ b/longqueries.py Mon Jul 09 10:29:47 2012 +0200 @@ -12,7 +12,7 @@ def main(self): stats = pgstats.PgStats(self.pgm.get_conn('target')) - for ln in stats.list_long_queries('0m'): + for ln in stats.list_long_queries('1m'): print(highlight(1), 'backend PID: ', ln['procpid'], ', query_start: ', ln['query_start'].strftime('%F %T'), highlight(0), sep='') print(ln['query']) print()