On Thu, Sep 04, 2025 at 03:49:19PM +0800, Rider wrote: > And, the PG_RE_THROW() within the PG_CATCH block causes a non-local jump, > immediately aborting the current execution path to handle the error at a > higher level. This guarantees that the code following PG_END_TRY is > unreachable in the error scenario.
Please see details in utils/elog.h, if you want to study this area of the code of course. There is a large portion about volatile variables and compiler expectations which is also very interested to know about. And that's useful if you write your own extension code, outside of the core Postgres code. -- Michael
signature.asc
Description: PGP signature