> david.g.johns...@gmail.com wrote:
>
> I do understand better now and indeed the current limitation has no
> workaround that I can come up with. I was hoping maybe subblocks would work
> but its pretty clear cut that to catch an error at the commit command you
> must catch it within a block an
I do understand better now and indeed the current limitation has no
workaround that I can come up with. I was hoping maybe subblocks would
work but its pretty clear cut that to catch an error at the commit command
you must catch it within a block and the commit error will be raised first.
On Fri,
> t...@sss.pgh.pa.us wrote:
>
>> b...@yugabyte.com wrote:
>>
>> I want to demonstrate how to meet this requirement:
>>
>> «
>> Encapsulate each business function in a user-defined subprogram that hides
>> all the implementation details like table names and the SQL statements that
>> manipulate
Bryn Llewellyn writes:
> I want to demonstrate how to meet this requirement:
> «
> Encapsulate each business function in a user-defined subprogram that hides
> all the implementation details like table names and the SQL statements that
> manipulate their contents so the they cannot be seen usin
> david.g.johns...@gmail.com wrote:
>
>> b...@yugabyte.com wrote:
>>
>> Is there simply no way that inserts into table "t" in my example can be
>> encapsulated in PL/pgSQL so that the error from the failing trigger can be
>> handled rather there than escaping, raw, to the client?
>
> Any poten
On Fri, May 6, 2022 at 4:40 PM Bryn Llewellyn wrote:
>
> Is there simply no way that inserts into table "t" in my example can be
> encapsulated in PL/pgSQL so that the error from the failing trigger can be
> handled rather there than escaping, raw, to the client?
>
>
Any potential solution to thi
The PG doc section 43.8. Transaction Management:
https://www.postgresql.org/docs/current/plpgsql-transactions.html
says "A transaction cannot be ended inside a block with exception handlers."
It's easy to demonstrate the restriction by adding this just before the final
"