git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: d6013a3) | patch
Fix oversight in PG_RE_THROW processing: it's entirely possible that there
Wed, 2 May 2007 15:32:42 +0000 (15:32 +0000)
Wed, 2 May 2007 15:32:42 +0000 (15:32 +0000)
commit 88f1fd29897df477f0af3c5ffcefe53c697a6ff3
Fix oversight in PG_RE_THROW processing: it's entirely possible that there
isn't any place to throw the error to. If so, we should treat the error
as FATAL, just as we would have if it'd been thrown outside the PG_TRY
block to begin with.

Although this is clearly a *potential* source of bugs, it is not clear
at the moment whether it is an *actual* source of bugs; there may not
presently be any PG_TRY blocks in code that can be reached with no outer
longjmp catcher. So for the moment I'm going to be conservative and not
back-patch this. The change breaks ABI for users of PG_RE_THROW and hence
might create compatibility problems for loadable modules, so we should not
put it into released branches without proof that it's needed.
src/backend/utils/error/elog.c diff | blob | blame | history
src/include/utils/elog.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /