diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2008-05-13 22:10:30 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2008-05-13 22:10:30 +0000 |
commit | 4107478d374fae8299b6eb17fd13e65b7d8e026a (patch) | |
tree | 8b5c88f19f9a3a59ad034a9e8ececa072101efba /src/backend/tcop/postgres.c | |
parent | 72e2db86b9845f75ebf538dd96614b1dab6cfb04 (diff) | |
download | postgresql-4107478d374fae8299b6eb17fd13e65b7d8e026a.tar.gz postgresql-4107478d374fae8299b6eb17fd13e65b7d8e026a.zip |
Improve plpgsql's RAISE command. It is now possible to attach DETAIL and
HINT fields to a user-thrown error message, and to specify the SQLSTATE
error code to use. The syntax has also been tweaked so that the
Oracle-compatible case "RAISE exception_name" works (though you won't get a
very nice error message if you just write that much). Lastly, support
the Oracle-compatible syntax "RAISE" with no parameters to re-throw
the current error from within an EXCEPTION block.
In passing, allow the syntax SQLSTATE 'nnnnn' within EXCEPTION lists,
so that there is a way to trap errors with custom SQLSTATE codes.
Pavel Stehule and Tom Lane
Diffstat (limited to 'src/backend/tcop/postgres.c')
0 files changed, 0 insertions, 0 deletions