Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 13DEC47590C for ; Mon, 4 Nov 2002 01:29:31 -0500 (EST) Received: from web80309.mail.yahoo.com (web80309.mail.yahoo.com [66.218.79.25]) by postgresql.org (Postfix) with SMTP id 574FA4758E1 for ; Mon, 4 Nov 2002 01:29:30 -0500 (EST) Message-ID: <20021104062930.80372.qmail@web80309.mail.yahoo.com> Received: from [203.87.150.116] by web80309.mail.yahoo.com via HTTP; Sun, 03 Nov 2002 22:29:30 PST Date: Sun, 3 Nov 2002 22:29:30 -0800 (PST) From: Ludwig Lim Subject: Logging RAISE statement to a logfile aside from syslog To: PostgreSQL Mailing List MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/40 X-Sequence-Number: 6228 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