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 1sK2KI-0080GJ-K5 for pgsql-general@arkaria.postgresql.org; Wed, 19 Jun 2024 20:54:42 +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 1sK2KF-006z6p-Kf for pgsql-general@arkaria.postgresql.org; Wed, 19 Jun 2024 20:54:40 +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 1sK2KF-006z6h-9j for pgsql-general@lists.postgresql.org; Wed, 19 Jun 2024 20:54:40 +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 1sK2KE-002X3t-11 for pgsql-general@postgresql.org; Wed, 19 Jun 2024 20:54:39 +0000 Received: from salmo.appl-ecosys.com (salmo.appl-ecosys.com [192.168.55.1]) by mail.appl-ecosys.com (Postfix) with ESMTP id CF67D2A2B7C for ; Wed, 19 Jun 2024 13:54:35 -0700 (PDT) Date: Wed, 19 Jun 2024 13:54:35 -0700 (PDT) From: Rich Shepard To: pgsql-general@postgresql.org Subject: Re: Transaction issue In-Reply-To: Message-ID: References: <65F95FD4-CBEA-4E66-AE63-EBC9F617C988@gmail.com> <7678da90-521-3b52-4bb5-11bc9bdf6d1@appl-ecosys.com> MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, 19 Jun 2024, Adrian Klaver wrote: > 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. Adrian, et al.: That's what I've done. This time I commented out the BEGIN; line: bustrac=# \i insert-law-offices-addr.sql INSERT 0 66 There are no errors in the file but when I tried running it as a transaction it failed. I have not before used transactions when inserting or updating tables; I'm surprised that starting the transaction from the psql command line chokes the attempt. Regards, Rich