public inbox for [email protected]  
help / color / mirror / Atom feed
From: Christophe Pettus <[email protected]>
To: Podrigal, Aron <[email protected]>
Cc: [email protected]
Subject: Re: Proper way to keep count of statements executed within current transaction
Date: Fri, 24 May 2019 13:56:18 -0700
Message-ID: <[email protected]> (raw)
In-Reply-To: <CANJp-yjQ0G+ww_fMeWdNwYcprwZLQTxSvG8wTu8LKek26MTayQ@mail.gmail.com>
References: <CANJp-yjQ0G+ww_fMeWdNwYcprwZLQTxSvG8wTu8LKek26MTayQ@mail.gmail.com>



> On May 24, 2019, at 13:49, Podrigal, Aron <[email protected]> wrote:
> 
> My question is, what is the correct way to detect whether any statements were executed successfully prior to the connection being lost.

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

--
-- Christophe Pettus
   [email protected]






view thread (2+ messages)

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: Proper way to keep count of statements executed within current transaction
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox