• Tom Lane's avatar
    Modify the handling of RAISE without parameters so that the error it throws · 2e35d4f3
    Tom Lane authored
    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
    2e35d4f3
plpgsql.sql 85.4 KB