pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: nconway@klamath.dyndns.org
To: Bruce Momjian <pgman@candle.pha.pa.us>
Cc: Andrew Sullivan <andrew@libertyrms.info>
Cc: pgsql-general@postgresql.org
Subject: Re: log sql?
Date: Tue, 30 Jul 2002 10:12:08 -0400
Message-ID: <20020730141207.GB13322@klamath.dyndns.org> (raw)
In-Reply-To: <200207300414.g6U4EGI29236@candle.pha.pa.us>
References: <20020729084413.A8252@mail.libertyrms.com>
	<200207300414.g6U4EGI29236@candle.pha.pa.us>

On Tue, Jul 30, 2002 at 12:14:16AM -0400, Bruce Momjian wrote:
> Andrew Sullivan wrote:
> > 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).
> 
> Andrew, what postgresql.conf parameter is query logging.

debug_print_query

Cheers,

Neil

-- 
Neil Conway <neilconway@rogers.com>
PGP Key ID: DB3C29FC



view thread (14+ messages)  latest in thread

Message-ID: <20020730141207.GB13322@klamath.dyndns.org>
Permalink:  ../20020730141207.GB13322@klamath.dyndns.org/
Also on:    postgresql.org/message-id/20020730141207.GB13322@klamath.dyndns.org

 · 

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: nconway@klamath.dyndns.org, pgman@candle.pha.pa.us, andrew@libertyrms.info, pgsql-general@postgresql.org
  Subject: Re: log sql?
  In-Reply-To: <20020730141207.GB13322@klamath.dyndns.org>
  References: <20020729084413.A8252@mail.libertyrms.com> <200207300414.g6U4EGI29236@candle.pha.pa.us> <20020730141207.GB13322@klamath.dyndns.org>

* 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