Modify the handling of RAISE without parameters so that the error it throws

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 2e35d4f35ca3dd822dbf8dcdcceff822cfb43d78
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2010-08-09T02:25:07Z
Releases: 9.1.0
Modify the handling of RAISE without parameters so that the error it throws
can be caught in the same places that could catch an ordinary RAISE ERROR
in the same location.  The previous coding insisted on throwing the error
from the block containing the active exception handler; which is arguably
more surprising, and definitely unlike Oracle's behavior.

Not back-patching, since this is a pretty obscure corner case.  The risk
of breaking somebody's code in a minor version update seems to outweigh
any possible benefit.

Piyush Newe, reviewed by David Fetter

Files