Skip site navigation (1) Skip section navigation (2)

Re: Logging query durations into another table in PostgreSQL

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Rajesh Kumar Mallah <mallah(at)trade-india(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Logging query durations into another table in PostgreSQL
Date: 2003-10-31 01:56:21
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
Rajesh Kumar Mallah wrote:
> Hi,
> Is it possible to log the statements and durations of executed
> queries into a special table for later analysis. Or capturing the

No table option.

> logfile and parsing it the only way? In the case of latter is it
> possible to use syslog to pipe the lines through a program
> can anyone please share the config if he has done it before

Sure, you can use syslog.

  Bruce Momjian                        |
  pgman(at)candle(dot)pha(dot)pa(dot)us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

In response to

pgsql-admin by date

Next:From: Marek FlorianczykDate: 2003-10-31 10:04:08
Subject: performance problem - 10.000 databases
Previous:From: Tom LaneDate: 2003-10-31 00:38:57
Subject: Re: Another database recovery problem

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group