Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id D59DE4763FD for ; Tue, 11 Jun 2002 11:08:14 -0400 (EDT) Received: from thread.crystalballinc.com (www.crystalballinc.com [63.89.89.77]) by postgresql.org (Postfix) with ESMTP id B7241475F0C for ; Tue, 11 Jun 2002 11:03:21 -0400 (EDT) Received: from localhost (darren@localhost) by thread.crystalballinc.com (8.11.6/8.9.3) with ESMTP id g5BF3HR11091; Tue, 11 Jun 2002 11:03:17 -0400 Date: Tue, 11 Jun 2002 11:03:17 -0400 (EDT) From: Darren Ferguson To: Chris Gamache Cc: pgsql-general@postgresql.org Subject: Re: "ERROR:" Messages In-Reply-To: <20020611145319.67781.qmail@web13806.mail.yahoo.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200206/324 X-Sequence-Number: 25476 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 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 >