Herouth Maoz wrote:
> Is there a more elegant way to find out whether the connection has been
> dropped from within the catch clause?
Test the SQLState of the thrown SQLException. See
http://www.postgresql.org/docs/8.4/static/errcodes-appendix.html
-O