public inbox for [email protected]  
help / color / mirror / Atom feed
From: David G. Johnston <[email protected]>
To: Rich Shepard <[email protected]>
Cc: [email protected]
Subject: Re: Transaction issue
Date: Wed, 19 Jun 2024 11:07:06 -0700
Message-ID: <CAKFQuwZ+yT-jDtYUv8sbPskQO+SW6iRZL0XQjE0PPpBFfmetig@mail.gmail.com> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>

On Wed, Jun 19, 2024 at 10:56 AM Rich Shepard <[email protected]>
wrote:

> I now insert rows using a transaction. Sometimes psql halts with an error:
> ERROR:  current transaction is aborted, commands ignored until end of
> transaction block
>
> I issue a rollback; command but cannot continue processing. What is the
> appropriate way to respond to that error after fixing the syntax error?
>

Simplest process, after rollback you fix the problem and start again from
the top of the transaction.

David J.


view thread (9+ messages)  latest in thread

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: Transaction issue
  In-Reply-To: <CAKFQuwZ+yT-jDtYUv8sbPskQO+SW6iRZL0XQjE0PPpBFfmetig@mail.gmail.com>

* 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