Re: Proper way to keep count of statements executed within currenttransaction

Поиск
Список
Период
Сортировка
От Christophe Pettus
Тема Re: Proper way to keep count of statements executed within currenttransaction
Дата
Msg-id D736EE9B-27AB-42F9-BB04-D0887C758594@thebuild.com
обсуждение исходный текст
Ответ на Proper way to keep count of statements executed within current transaction  ("Podrigal, Aron" <aronp@guaranteedplus.com>)
Список psycopg

> On May 24, 2019, at 13:49, Podrigal, Aron <aronp@guaranteedplus.com> wrote:
>
> My question is, what is the correct way to detect whether any statements were executed successfully prior to the
connectionbeing lost. 

You can't.  This is exactly why you have transactions: In the case of a lost connection, you can assume the transaction
wasaborted, and retry the transaction from the start. 

--
-- Christophe Pettus
   xof@thebuild.com




В списке psycopg по дате отправления:

Предыдущее
От: "Podrigal, Aron"
Дата:
Сообщение: Proper way to keep count of statements executed within current transaction
Следующее
От: Thomas Güttler
Дата:
Сообщение: Re: Log Stacktrace of current Python Interpreter via PostgreSQLtrigger