longqueries.py
changeset 83 515fadd3d286
parent 73 390376b9e70f
child 93 b72591087495
equal deleted inserted replaced
82:7b82dc1fb6f5 83:515fadd3d286
     1 #!/usr/bin/env python3.2
     1 #!/usr/bin/env python3.2
     2 
     2 
     3 from pgtoolkit import pgstats, toolbase
     3 from pgtoolkit import pgstats, toolbase
     4 from pgtoolkit.highlight import highlight, YELLOW, BOLD
     4 from pycolib.ansicolor import highlight, YELLOW, BOLD
     5 
     5 
     6 
     6 
     7 class LongQueriesTool(toolbase.SimpleTool):
     7 class LongQueriesTool(toolbase.SimpleTool):
     8     def __init__(self):
     8     def __init__(self):
     9         toolbase.SimpleTool.__init__(self, name='longqueries', desc='List long queries.')
     9         toolbase.SimpleTool.__init__(self, name='longqueries', desc='List long queries.')