From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Andrew Sullivan <andrew(at)libertyrms(dot)info> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: log sql? |
Date: | 2002-07-30 04:14:16 |
Message-ID: | 200207300414.g6U4EGI29236@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin pgsql-general |
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. I don't see
it. I see:
#log_connections = false
#log_timestamp = false
#log_pid = false
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2002-07-30 04:16:59 | Re: [GENERAL] pg_controldata question |
Previous Message | Bruce Momjian | 2002-07-30 03:28:43 | Re: log sql? |
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2002-07-30 04:16:59 | Re: [GENERAL] pg_controldata question |
Previous Message | Jim Morcombe | 2002-07-30 03:50:44 | Size of libpq.so |