Re: log file - Mailing list pgsql-sql

From Richard Huxton
Subject Re: log file
Date
Msg-id 009101c0f970$220cee20$1001a8c0@archonet.com
Whole thread Raw
In response to log file  (Jie Liang <jliang@ipinc.com>)
Responses Re: log file  ("Josh Berkus" <josh@agliodbs.com>)
List pgsql-sql
From: "Jie Liang" <jliang@ipinc.com>

> Tom,
>
> We turn on the log file by:
> In file 'postgresql.conf'
> syslog = 2 # range 0-2
> syslog_facility = 'LOCAL0'
> syslog_ident = 'postgres'
>
> 1. It seems that postmaster writes stuff undef /db/pgsql/pg_xlog
>    (they are not text files).

pg_xlog stuff is WAL related (Ch 9 Administrators guide)

> 2. the log file I expected (I want log include SQL statement and ERROR)
>    Just have NOTICE and DEBUG info.

I *think* you want DEBUG_PRINT_QUERY and its friends. See Ch 3.4.2 of the
Administrators Guide.

HTH

- Richard Huxton


pgsql-sql by date:

Previous
From: "Richard Huxton"
Date:
Subject: Re: unrecognized language 'plpgsql'
Next
From: Christof Glaser
Date:
Subject: Re: [ADMIN] Row Level Locking !!