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 1sKJji-009V63-KW for pgsql-general@arkaria.postgresql.org; Thu, 20 Jun 2024 15:30:06 +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 1sKJjg-009nJh-Cs for pgsql-general@arkaria.postgresql.org; Thu, 20 Jun 2024 15:30:05 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sKJjf-009nJK-VR for pgsql-general@lists.postgresql.org; Thu, 20 Jun 2024 15:30:04 +0000 Received: from mail.appl-ecosys.com ([50.126.108.78]) by makus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sKJje-002Gwc-8k for pgsql-general@postgresql.org; Thu, 20 Jun 2024 15:30:03 +0000 Received: from salmo.appl-ecosys.com (salmo.appl-ecosys.com [192.168.55.1]) by mail.appl-ecosys.com (Postfix) with ESMTP id CA43E2A2B7C for ; Thu, 20 Jun 2024 08:30:00 -0700 (PDT) Date: Thu, 20 Jun 2024 08:30:00 -0700 (PDT) From: Rich Shepard To: pgsql-general@postgresql.org Subject: Re: Transaction issue In-Reply-To: <3fe68b62-39bd-407b-978c-10978c912248@aklaver.com> Message-ID: <9cd4bdb6-5585-c46-83db-ab164513bda0@appl-ecosys.com> References: <55a3c9-5baa-ba24-c3fb-c9a777b7917e@appl-ecosys.com> <393A432B-E08C-46C6-B8FE-BE20BEE4E122@gmail.com> <3fe68b62-39bd-407b-978c-10978c912248@aklaver.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, 20 Jun 2024, Adrian Klaver wrote: > From one of my previous posts(modified): > At this point I think you need to create a simple test case where: > > 1) You have script with > BEGIN; > > COMMIT; --optional > > 2) In psql do \i > > 3) Do what you did before to 'recover' from the error. > > Shows us the content of the steps in your reply. Adrian, I belive that I did this yesterday. Regardless, either leaving off `BEGIN;' from the top of the script, or entering it prior to running the script, resolves the issue. I've not seen a problem since finding the solutions. Best regards, Rich