From: Darren Ferguson <darren@crystalballinc.com>
To: Chris Gamache <cgg007@yahoo.com>
Cc: pgsql-general@postgresql.org
Subject: Re: "ERROR:" Messages
Date: Tue, 11 Jun 2002 11:03:17 -0400 (EDT)
Message-ID: <Pine.LNX.4.10.10206111100570.11063-100000@thread.crystalballinc.com> (raw)
In-Reply-To: <20020611145319.67781.qmail@web13806.mail.yahoo.com>
Redirect the output to a logfile of your choice. There was a huge talk
about this yesterday on the list.
#!/bin/bash
HOME=/usr/local/pgsql
LOG=$HOME/logs/postgres.log
USER=darren
ulimit -SHc unlimited
su $USER -c "nohup $HOME/bin/postmaster -D $HOME/db $@ >$LOG 2>&1
</dev/null&"
This script above is what i use to start the postmaster and as you can see
i redirect the output to the file postgres.log. There are also different
logging levels in the postgres.conf file that you can turn on.
HTH
Darren Ferguson
On Tue, 11 Jun 2002, Chris Gamache wrote:
> Some of my carefully throught out, and painstakingly graded SQL inserts (or
> updates) are failing intermittantly because I guess I didn't grade hard enough!
> :)
>
> I'm getting ERROR: messages on the console (and rightly so!) ... My question
> is, how can I find out what the text of the failed query would be. That would
> give me a better clue as to where my code fails. It would also take a lot less
> time going through the code SQL statement by SQL statement to find the guilty
> one.
>
> I compiled --without-syslog to eek the last bit of performance out of
> PostgreSQL. I have no problem recompiling with more feedback detail enabled to
> resolve the problem. I just need a clue on where to start looking. The whole
> logging part of PostgreSQL is still magical to me.
>
> CG
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
>
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: darren@crystalballinc.com, cgg007@yahoo.com, pgsql-general@postgresql.org
Subject: Re: "ERROR:" Messages
In-Reply-To: <Pine.LNX.4.10.10206111100570.11063-100000@thread.crystalballinc.com>
References: <20020611145319.67781.qmail@web13806.mail.yahoo.com> <Pine.LNX.4.10.10206111100570.11063-100000@thread.crystalballinc.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