Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sK1zh-007yTa-Jl for pgsql-general@arkaria.postgresql.org; Wed, 19 Jun 2024 20:33:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1sK1zf-006ck4-Ch for pgsql-general@arkaria.postgresql.org; Wed, 19 Jun 2024 20:33:24 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sK1zf-006cj2-2C for pgsql-general@lists.postgresql.org; Wed, 19 Jun 2024 20:33:23 +0000 Received: from mail.appl-ecosys.com ([50.126.108.78]) by magus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sK1zd-002Wv4-NO for pgsql-general@postgresql.org; Wed, 19 Jun 2024 20:33:23 +0000 Received: from salmo.appl-ecosys.com (salmo.appl-ecosys.com [192.168.55.1]) by mail.appl-ecosys.com (Postfix) with ESMTP id EF3B62A2B7C for ; Wed, 19 Jun 2024 13:33:18 -0700 (PDT) Date: Wed, 19 Jun 2024 13:33:18 -0700 (PDT) From: Rich Shepard To: PostgreSQL General Subject: Re: Transaction issue In-Reply-To: <65F95FD4-CBEA-4E66-AE63-EBC9F617C988@gmail.com> Message-ID: <7678da90-521-3b52-4bb5-11bc9bdf6d1@appl-ecosys.com> References: <65F95FD4-CBEA-4E66-AE63-EBC9F617C988@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8BIT List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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