Re: psql no longer handles fatal/panic errors well

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: psql no longer handles fatal/panic errors well
Date: 2003-07-30 16:30:20
Message-ID: 15512.1059582620@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I said:
> It seems odd that the FATAL error is reported after, rather than before,
> the reconnection attempt; and it's really not acceptable to lose the
> PANIC message entirely.

Also, both classes of messages seem to be dropped if psql is not running
interactively (probably since it exits without trying to reconnect).
If I run the regression tests against my hacked backend, the errors test
fails with:

--- 241,244 ----
-- Check that division-by-zero is properly caught.
--
select 1/0;
! connection to server was lost

======================================================================

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Mendola Gaetano 2003-07-30 16:40:21 Re: parallel regression test failure
Previous Message Tom Lane 2003-07-30 16:19:15 psql no longer handles fatal/panic errors well