Re: How to read log files

From: "Andy Dale" <andy(dot)dale(at)gmail(dot)com>
To: "Thomas F(dot) O'Connell" <tfo(at)sitening(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: How to read log files
Date: 2006-08-03 14:34:55
Message-ID: faa313130608030734k42e28c07nbfc4e49809d6306a@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I have tried messing with the logging settings in postgres.conf but it
always displays $1, i have set every level to debug 5 and logging all
statements, but i still have had no success.

Andy

On 8/3/06, Thomas F. O'Connell <tfo(at)sitening(dot)com> wrote:
>
>
> On Aug 3, 2006, at 8:33 AM, Andy Dale wrote:
>
> > I am currently trying to debug an issue we are experiencing and i
> > have turned the server logging onto debug level 5 and filtering out
> > the LOG messages, i still need some advice on how to interpret
> > them. I an extract from the log is:
>
> [snip]
>
> > The main difficulty i am having at the moment is knowing which
> > commit belongs to which statement (especially when you have 2 or
> > more statements), does it work like a stack structure where the
> > last statement is committed first, or more like a queue where that
> > statements are committed in the order in which the were issued.
> > Also as you can see from the above log extract it has a lot of $1
> > and $2 is there anyway to print these out in the log as well ?
>
> Have you tried running with log_statement enabled? I find that
> incredibly useful for tracking application behavior from the postgres
> logs.
>
> http://www.postgresql.org/docs/8.1/static/runtime-config-
> logging.html#RUNTIME-CONFIG-LOGGING-WHAT
>
> --
> Thomas F. O'Connell
> Sitening, LLC
>
> http://www.sitening.com/
> 3004B Poston Avenue
> Nashville, TN 37203-1314
> 615-469-5150 x802
> 615-469-5151 (fax)
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Vivek Khera 2006-08-03 14:53:58 Re: pg_restore performance on solaris 10/6
Previous Message Thomas F. O'Connell 2006-08-03 14:21:14 Re: How to read log files