Re: how do I get a log of SQL executed by server?

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Robert Treat <xzilla(at)users(dot)sourceforge(dot)net>
Cc: Ken Guest <kguest(at)stockbyte(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: how do I get a log of SQL executed by server?
Date: 2003-02-12 14:50:27
Message-ID: 200302121450.h1CEoRr01560@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


In 7.3, it is log_statement.

---------------------------------------------------------------------------

Robert Treat wrote:
> On Thu, 2003-02-06 at 12:18, Ken Guest wrote:
> > with mysql it's possible to get a log of all sql that the server executes.
> > Is this possible with postgres and how do I turn this on?
> >
> > thanks ever so much
> >
> > Ken
> >
> >
>
> You'll want to check out the DEBUG_PRINT_* settings in the
> postgresql.conf file. See section 3.4 in the administrator's guide
> -- http://www.gtsm.com/cgi/psearch?page=runtime-config.html
>
> Robert Treat
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org
>

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2003-02-12 15:36:20 Re: COMMIT notification
Previous Message Oliver Elphick 2003-02-12 14:37:59 Re: locale error