pgtoolkit.conf.example
author Radek Brich <radek.brich@devl.cz>
Wed, 26 Sep 2012 16:28:28 +0200
changeset 44 4fe39c59c515
parent 6 4ab077c93b2d
child 49 08e4dfe1b0cb
permissions -rw-r--r--
Update longqueries tool: add client IP, waiting attributes.

### named connections
databases = {
  'test' : 'host=127.0.0.1 user=test password=test dbname=test'
}

### meta database (contains connection parameters for other databases)
meta_db = 'host=10.8.0.1 dbname=central'
# query for connection parameters, input is database name (will be placed instead of %s)
meta_query = '''SELECT host, port, dbname, user, password FROM config.databases WHERE name = %s LIMIT 1'''