public inbox for [email protected]
help / color / mirror / Atom feedFrom: Adrian Klaver <[email protected]>
To: Rich Shepard <[email protected]>
To: PostgreSQL General <[email protected]>
Subject: Re: Transaction issue
Date: Wed, 19 Jun 2024 13:43:48 -0700
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
<[email protected]>
<[email protected]>
On 6/19/24 13:33, Rich Shepard wrote:
> On Wed, 19 Jun 2024, Alban Hertroys wrote:
>
>> The error prior to those statements is what you need to look at. That’s
>> what’s causing the transaction to fail.
>
> Alban/Adrian,
>
>> I get the impression that you’re executing shell scripts that run the
>> psql
>> command-line utility.
>
> That's what I do as I've not taken the time to finish the GUI with TKinter.
>
> Here's the latest example:
> bustrac=# \i insert-law-offices-addr.sql
> psql:insert-law-offices-addr.sql:1: ERROR: current transaction is
> aborted, commands ignored until end of transaction block
> psql:insert-law-offices-addr.sql:69: ERROR: current transaction is
> aborted, commands ignored until end of transaction block
Looks to me you have a left over unresolved transaction in your psql
session. The easiest solution if that is the case is to exit the session
and start a new session to run the script.
>
> Line 1 is the BEGIN; statement; line 69 is the last row of data to be
> inserted.
>
> Thanks,
>
> Rich
>
>
--
Adrian Klaver
[email protected]
view thread (10+ 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: <[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