On Tue, Jan 13, 2026 at 4:47 PM Andres Freund <[email protected]> wrote: > I'm pretty sure that doesn't generally happen. There's promotion to FATAL if > the top-level sigsetjmp() hasn't yet run (c.f. the check for > PG_exception_stack in errstart()), but once it has been reached, it stays > configured.
All right, then I guess I don't fully understand how the error-outside-of-a-transaction case is handled. But I still think that code like this needs to run in a transaction to avoid unexpected and undesirable results. Do you see it differently? -- Robert Haas EDB: http://www.enterprisedb.com
