Re: Error code for "terminating connection due to conflict with recovery" - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Error code for "terminating connection due to conflict with recovery"
Date
Msg-id 11580.1296520412@sss.pgh.pa.us
Whole thread Raw
In response to Re: Error code for "terminating connection due to conflict with recovery"  (Simon Riggs <simon@2ndQuadrant.com>)
List pgsql-hackers
Simon Riggs <simon@2ndQuadrant.com> writes:
> BTW, anybody know why we have PL/pgSQL condition codes for conditions
> that can't be trapped by PL/pgSQL? ERRCODE_ADMIN_SHUTDOWN and
> ERRCODE_DATABASE_DROPPED are always FATAL. Seems like pointless code to
> me.

There's a difference between not being able to trap the error and not
being able to name it at all.  You might wish to throw it, for instance.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: Error code for "terminating connection due to conflict with recovery"
Next
From: Bruce Momjian
Date:
Subject: Re: pg_upgrade fails for non-postgres user