From: Andrew Sullivan <andrew@libertyrms.info>
To: pgsql-admin@postgresql.org
Subject: Re: Logging: statements and users
Date: Fri, 14 Nov 2003 09:34:36 -0500
Message-ID: <20031114143436.GA27483@libertyrms.info> (raw)
In-Reply-To: <20031113071009.88819.qmail@web21405.mail.yahoo.com>
References: <20031113071009.88819.qmail@web21405.mail.yahoo.com>
On Wed, Nov 12, 2003 at 11:10:09PM -0800, ow wrote:
> Hi,
>
> It appears that pgSql can be configured to log the executed statements.
> However, the log does not appear to contain any info about who's running the
> statement. Any way to change this?
You can log the pid and log connections, and then trace back to see
who connected with that pid. There was some discussion about
improving this for 7.4, but I don't know if any of that was done.
A
--
----
Andrew Sullivan 204-4141 Yonge Street
Afilias Canada Toronto, Ontario Canada
<andrew@libertyrms.info> M2P 2A8
+1 416 646 3304 x110
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: andrew@libertyrms.info
Subject: Re: Logging: statements and users
In-Reply-To: <20031114143436.GA27483@libertyrms.info>
References: <20031113071009.88819.qmail@web21405.mail.yahoo.com> <20031114143436.GA27483@libertyrms.info>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox