Re: Document that PG_TRY block cannot have a return statement

2023-09-14 Thread Serpent
that might throw ereport(ERROR)' for XXX since this is what's used earlier in the comment. On Tue, 12 Sept 2023 at 17:22, Tom Lane wrote: > Serpent writes: > > I'm talking about this part: > > > PG_TRY(); > > { > > ... code that might throw ereport(

Document that PG_TRY block cannot have a return statement

2023-09-12 Thread Serpent
Hi, I created a tiny patch that documents that the code block following PG_TRY() cannot have any return statement. Please CC me, as I'm not subscribed to this list. commit 1968e53b9a649691fbedbdc059e2e933aa2b471b Author: Serpent7776 Date: Tue Sep 12 14:38:09 2023 +0200 Document that PG_TR