Simon Riggs <simon(at)2ndQuadrant(dot)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