Re: Transaction issue

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Rich Shepard <rshepard(at)appl-ecosys(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Transaction issue
Date: 2024-06-19 18:07:06
Message-ID: CAKFQuwZ+yT-jDtYUv8sbPskQO+SW6iRZL0XQjE0PPpBFfmetig@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Jun 19, 2024 at 10:56 AM Rich Shepard <rshepard(at)appl-ecosys(dot)com>
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.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Rich Shepard 2024-06-19 18:36:49 Re: Transaction issue
Previous Message Adrian Klaver 2024-06-19 17:58:19 Re: Transaction issue