pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ludwig Lim <lud_nowhere_man@yahoo.com>
To: PostgreSQL Mailing List <pgsql-admin@postgresql.org>
Subject: Logging RAISE statement to a logfile aside from syslog
Date: Sun, 3 Nov 2002 22:29:30 -0800 (PST)
Message-ID: <20021104062930.80372.qmail@web80309.mail.yahoo.com> (raw)

Hi:

   Is there a way of logging the RAISE statements in a
plpgsql function to a logfile (aside from syslog)? I
noticed that all RAISE statments are only logged in
the syslog.

   The following is a portion my current configuration
related to logging:
   log_connection = true
   log_timestamp = true
   debug_level = 3
  
   syslog = 2
   syslog_facility = 'LOCAL0'
   syslog_ident = 'postgres'

   I did not raise the log level to 4 since it create
large volumes of logfile.

  The following is the portion of the script that
start my postgresql daemon at boot in /etc/rc.d/init.d
:

start() {
    su postgres -c "/usr/local/pgsql/bin/pg_ctl start
-l /var/log/postgres/postgres.log -D /data 2>
/var/log/postgres/postgres.log"
}

 - I noticed that postgres.log does not contain
anything when the debug level is at 3.
   
  Version :  PostgreSQL 7.2.2 on i686-pc-linux-gnu,
compiled by GCC 2.96
  Platform : Redhat 7.1

Thank you in advance,
ludwig



__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com



view thread (2+ messages)  latest in thread

Message-ID: <20021104062930.80372.qmail@web80309.mail.yahoo.com>
Permalink:  ../20021104062930.80372.qmail@web80309.mail.yahoo.com/
Also on:    postgresql.org/message-id/20021104062930.80372.qmail@web80309.mail.yahoo.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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: lud_nowhere_man@yahoo.com
  Subject: Re: Logging RAISE statement to a logfile aside from syslog
  In-Reply-To: <20021104062930.80372.qmail@web80309.mail.yahoo.com>
  References: <20021104062930.80372.qmail@web80309.mail.yahoo.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