pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Huxton <dev@archonet.com>
To: Jie Liang <jliang@ipinc.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-sql@postgresql.org
Cc: pgsql-admin@postgresql.org
Subject: Re: [SQL] log file
Date: Wed, 20 Jun 2001 11:02:32 +0100
Message-ID: <009101c0f970$220cee20$1001a8c0@archonet.com> (raw)
References: <Pine.BSF.4.10.10106192133000.24483-100000@tidal.ipinc.com>

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




view thread (5+ messages)  latest in thread

Message-ID: <009101c0f970$220cee20$1001a8c0@archonet.com>
Permalink:  ../009101c0f970$220cee20$1001a8c0@archonet.com/
Also on:    postgresql.org/message-id/009101c0f970$220cee20$1001a8c0@archonet.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: dev@archonet.com, jliang@ipinc.com, tgl@sss.pgh.pa.us, pgsql-sql@postgresql.org
  Subject: Re: [SQL] log file
  In-Reply-To: <009101c0f970$220cee20$1001a8c0@archonet.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox