Re: Transaction issue - Mailing list pgsql-general

From Rich Shepard
Subject Re: Transaction issue
Date
Msg-id 7678da90-521-3b52-4bb5-11bc9bdf6d1@appl-ecosys.com
Whole thread Raw
In response to Re: Transaction issue  (Alban Hertroys <haramrae@gmail.com>)
Responses Re: Transaction issue
Re: Transaction issue
List pgsql-general
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

Line 1 is the BEGIN; statement; line 69 is the last row of data to be
inserted.

Thanks,

Rich



pgsql-general by date:

Previous
From: Alban Hertroys
Date:
Subject: Re: Transaction issue
Next
From: Adrian Klaver
Date:
Subject: Re: Transaction issue