Re: log sql?

From: nconway(at)klamath(dot)dyndns(dot)org (Neil Conway)
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Andrew Sullivan <andrew(at)libertyrms(dot)info>, pgsql-general(at)postgresql(dot)org
Subject: Re: log sql?
Date: 2002-07-30 14:12:08
Message-ID: 20020730141207.GB13322@klamath.dyndns.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general

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(at)rogers(dot)com>
PGP Key ID: DB3C29FC

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Robert Treat 2002-07-30 14:22:58 Re: [GENERAL] log sql?
Previous Message stefan 2002-07-30 12:39:20 pg_controldata question

Browse pgsql-general by date

  From Date Subject
Next Message Markus Wollny 2002-07-30 14:16:55 Re: tsearch - Regression tests fail
Previous Message Paul 2002-07-30 14:05:05 ERROR: Can't Parse "" (PG and PHP on Linux)