pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Sullivan <andrew@libertyrms.info>
To: pgsql-general@postgresql.org
Subject: Re: log sql?
Date: Mon, 29 Jul 2002 08:44:13 -0400
Message-ID: <20020729084413.A8252@mail.libertyrms.com> (raw)
In-Reply-To: <Pine.LNX.4.44.0207261526590.11180-100000@visor.corp.nextbus.com>
References: <Pine.LNX.4.44.0207261526590.11180-100000@visor.corp.nextbus.com>

On Fri, Jul 26, 2002 at 03:27:45PM -0700, Laurette Cisneros wrote:
> 
> Is there way to track each sql statement and the user for the server?

Sort of.  Turn on query logging in the postgresql.conf file, and also
log connections and PID.  Then, you can track back by using the PID,
to discovere who logged in (and therefore, who issued that query).

A

-- 
----
Andrew Sullivan                               87 Mowat Avenue 
Liberty RMS                           Toronto, Ontario Canada
<andrew@libertyrms.info>                              M6K 3E3
                                         +1 416 646 3304 x110




view thread (14+ messages)  latest in thread

Message-ID: <20020729084413.A8252@mail.libertyrms.com>
Permalink:  ../20020729084413.A8252@mail.libertyrms.com/
Also on:    postgresql.org/message-id/20020729084413.A8252@mail.libertyrms.com

 · 

reply

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, pgsql-general@postgresql.org
  Subject: Re: log sql?
  In-Reply-To: <20020729084413.A8252@mail.libertyrms.com>
  References: <Pine.LNX.4.44.0207261526590.11180-100000@visor.corp.nextbus.com> <20020729084413.A8252@mail.libertyrms.com>

* 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