Re: COMMIT IN STORED PROCEDURE WHILE IN A LOOP
От
Christophe Pettus
Тема
Re: COMMIT IN STORED PROCEDURE WHILE IN A LOOP
Дата
Msg-id
408C4DF8-2F05-401A-B4BC-FAAAFE79CA49@thebuild.com
Ответ на
Re: COMMIT IN STORED PROCEDURE WHILE IN A LOOP (Bryn Llewellyn)
Список
Дерево обсуждения
COMMIT IN STORED PROCEDURE WHILE IN A LOOP Ravi Krishna <s_ravikrishna@aol.com>
Re: COMMIT IN STORED PROCEDURE WHILE IN A LOOP Christophe Pettus <xof@thebuild.com>
Re: COMMIT IN STORED PROCEDURE WHILE IN A LOOP Bryn Llewellyn <bryn@yugabyte.com>
Re: COMMIT IN STORED PROCEDURE WHILE IN A LOOP Tom Lane <tgl@sss.pgh.pa.us>
Re: COMMIT IN STORED PROCEDURE WHILE IN A LOOP Laurenz Albe <laurenz.albe@cybertec.at>
Re: COMMIT IN STORED PROCEDURE WHILE IN A LOOP gogala.mladen@gmail.com
Re: COMMIT IN STORED PROCEDURE WHILE IN A LOOP Thomas Kellerer <shammat@gmx.net>
Re: COMMIT IN STORED PROCEDURE WHILE IN A LOOP Benedict Holland <benedict.m.holland@gmail.com>
Re: COMMIT IN STORED PROCEDURE WHILE IN A LOOP Christophe Pettus <xof@thebuild.com>
Re: COMMIT IN STORED PROCEDURE WHILE IN A LOOP Ravi Krishna <s_ravikrishna@aol.com>
Re: COMMIT IN STORED PROCEDURE WHILE IN A LOOP Christophe Pettus <xof@thebuild.com>
Re: COMMIT IN STORED PROCEDURE WHILE IN A LOOP gogala.mladen@gmail.com
Re: COMMIT IN STORED PROCEDURE WHILE IN A LOOP Christophe Pettus <xof@thebuild.com>
Re: COMMIT IN STORED PROCEDURE WHILE IN A LOOP Mladen Gogala <gogala.mladen@gmail.com>
Re: COMMIT IN STORED PROCEDURE WHILE IN A LOOP Ron <ronljohnsonjr@gmail.com>
Re: COMMIT IN STORED PROCEDURE WHILE IN A LOOP Bryn Llewellyn <bryn@yugabyte.com>
> On Oct 18, 2022, at 14:15, Bryn Llewellyn wrote: > Could the limitation be lifted by making tractable internal implementation changes? Or is it rooted in profoundly deep features of the architecture—meaning that it could never be lifted? That is a very good question. One of the issues (as I understand it) is to be able to continue to use the same connection in the event of an error. Here's the scenario: 1. SELECT * FROM my_func(); 2. my_func gets an error. The connection is now in an error state. 3. So, catching the exception doesn't do you much good, because future operations will get an error. This problem is solved by wrapping it in a savepoint, since rolling back to the savepoint will undo the error state of the connection. There might be a way forward, but it's hard to get the proper semantics of an exception handler without doing something like that.
В списке pgsql-general по дате отправления