logging queries and time used

From: stig erikson <stigerikson_nospam_(at)yahoo(dot)se>
To: pgsql-general(at)postgresql(dot)org
Subject: logging queries and time used
Date: 2004-10-29 21:18:48
Message-ID: cluc5g$2g0o$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi.
i would like to log every single query coming in to the database into a
table. i would like the log to include the entire query and execution
time and execution cost, and if possible the user that executed the query.

A trigger is what i was thinking of, but how can i find out the actual
query, the time it took to execute it, etc.?

stig

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Karsten Hilbert 2004-10-29 21:51:22 Re: XMIN/xid vs UNION
Previous Message Ian Pilcher 2004-10-29 20:56:46 Re: UTF-8 -> ISO8859-1 conversion problem