Re: psql no longer handles fatal/panic errors well - Mailing list pgsql-hackers

From Tom Lane
Subject Re: psql no longer handles fatal/panic errors well
Date
Msg-id 15512.1059582620@sss.pgh.pa.us
Whole thread Raw
In response to psql no longer handles fatal/panic errors well  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: psql no longer handles fatal/panic errors well
Next
From: Andrew Sullivan
Date:
Subject: Re: Upgrading my BSDI box, again