pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feed"ERROR:" Messages
5+ messages / 4 participants
[nested] [flat]
* "ERROR:" Messages
@ 2002-06-11 14:53 Chris Gamache <cgg007@yahoo.com>
2002-06-11 15:01 ` Re: "ERROR:" Messages Neil Conway <nconway@klamath.dyndns.org>
2002-06-11 15:03 ` Re: "ERROR:" Messages Darren Ferguson <darren@crystalballinc.com>
0 siblings, 2 replies; 5+ messages in thread
From: Chris Gamache @ 2002-06-11 14:53 UTC (permalink / raw)
To: pgsql-general@postgresql.org
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
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: "ERROR:" Messages
2002-06-11 14:53 "ERROR:" Messages Chris Gamache <cgg007@yahoo.com>
@ 2002-06-11 15:01 ` Neil Conway <nconway@klamath.dyndns.org>
1 sibling, 0 replies; 5+ messages in thread
From: Neil Conway @ 2002-06-11 15:01 UTC (permalink / raw)
To: cgg007@yahoo.com; +Cc: pgsql-general@postgresql.org
On Tue, 11 Jun 2002 07:53:19 -0700 (PDT)
"Chris Gamache" <cgg007@yahoo.com> wrote:
> 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.
Set "debug_print_query = true" in postgresql.conf and send the postmaster a
SIGHUP.
> I compiled --without-syslog to eek the last bit of performance out of
> PostgreSQL.
I'd be surprised if that had any performance impact, particularly since
logging through syslog is disabled by default.
Cheers,
Neil
--
Neil Conway <neilconway@rogers.com>
PGP Key ID: DB3C29FC
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: "ERROR:" Messages
2002-06-11 14:53 "ERROR:" Messages Chris Gamache <cgg007@yahoo.com>
@ 2002-06-11 15:03 ` Darren Ferguson <darren@crystalballinc.com>
2002-06-11 21:27 ` Re: "ERROR:" Messages Chris Gamache <cgg007@yahoo.com>
1 sibling, 1 reply; 5+ messages in thread
From: Darren Ferguson @ 2002-06-11 15:03 UTC (permalink / raw)
To: Chris Gamache <cgg007@yahoo.com>; +Cc: pgsql-general@postgresql.org
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
>
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: "ERROR:" Messages
2002-06-11 14:53 "ERROR:" Messages Chris Gamache <cgg007@yahoo.com>
2002-06-11 15:03 ` Re: "ERROR:" Messages Darren Ferguson <darren@crystalballinc.com>
@ 2002-06-11 21:27 ` Chris Gamache <cgg007@yahoo.com>
0 siblings, 0 replies; 5+ messages in thread
From: Chris Gamache @ 2002-06-11 21:27 UTC (permalink / raw)
To: Darren Ferguson <darren@crystalballinc.com>; Neil Conway <nconway@klamath.dyndns.org>; +Cc: pgsql-general@postgresql.org
The solution is not as sexy as the one I was hoping for... :) I'm not one to
look a gift-horse in the mouth. Thank you for your responses, which were right
on target. I imagine I can combine the debug_print_query with the logging to a
postgres.log and just do a
tail -f postgres.log | grep -B1 ERROR:
and see where I'm going wrong!
CG
--- Darren Ferguson <darren@crystalballinc.com> wrote:
> 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.
>
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
^ permalink raw reply [nested|flat] 5+ messages in thread
* Error Messages
@ 2003-07-05 05:42 Ludwig Lim <lud_nowhere_man@yahoo.com>
0 siblings, 0 replies; 5+ messages in thread
From: Ludwig Lim @ 2003-07-05 05:42 UTC (permalink / raw)
To: pgsql-admin
Hi:
I found the following snippets of error messages in
the log file of a computer that is running
Postgresql-7.2:
NOTICE: Message from PostgreSQL backend:
The Postmaster has informed me that some other
backend died abnormally and possibly corrupted shared
memory.I have rolled back the current transaction and
am going to terminate your database system connection
and exit. Please reconnect to the database system and
repeat your query.
Is the error message above related to the following
error messages below :
DEBUG: pq_recvbuf: recv() failed: Connection timed
out
DEBUG: pq_flush: send() failed: Connection reset by
peer
DEBUG: pq_recvbuf: unexpected EOF on client
connection
DEBUG: pq_flush: send() failed: Broken pipe
By the way, I didn't issue a kill to the
postgreSQL processes so I'm surpise by the "unexpected
EOF on client connection".
Do I need to upgrade Postgresql? By the way there
are some errors if backup a 7.2 db and restore in 7.3
db. In 7.2 you can do something like "SELECT
CURRENT_TIMESTAMP()" in a plpgsql function, while this
will cause in an error in 7.3.
Do I need to change the hardware?
ludwig lim
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2003-07-05 05:42 UTC | newest]
Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-06-11 14:53 "ERROR:" Messages Chris Gamache <cgg007@yahoo.com>
2002-06-11 15:01 ` Neil Conway <nconway@klamath.dyndns.org>
2002-06-11 15:03 ` Darren Ferguson <darren@crystalballinc.com>
2002-06-11 21:27 ` Chris Gamache <cgg007@yahoo.com>
2003-07-05 05:42 Error Messages Ludwig Lim <lud_nowhere_man@yahoo.com>
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