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 1sK2Z8-0081Vw-Qa for pgsql-general@arkaria.postgresql.org; Wed, 19 Jun 2024 21:10:02 +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 1sK2Z6-007OHf-HB for pgsql-general@arkaria.postgresql.org; Wed, 19 Jun 2024 21:10:01 +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 1sK2Z6-007OFZ-5N for pgsql-general@lists.postgresql.org; Wed, 19 Jun 2024 21:10:01 +0000 Received: from fhigh2-smtp.messagingengine.com ([103.168.172.153]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sK2Z4-0028ik-Fi for pgsql-general@postgresql.org; Wed, 19 Jun 2024 21:09:59 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailfhigh.nyi.internal (Postfix) with ESMTP id E0EA511401E3; Wed, 19 Jun 2024 17:09:57 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Wed, 19 Jun 2024 17:09:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1718831397; x=1718917797; bh=WNnfKBMuLk3y/MRYh7uZ9fJL1cNUoEM1QAh/A+tnzfQ=; b= HwW+uIEe2cuHQunUWg5x3FTXTzVEZOwTx3Zqu78G6/KBsV9m3lQM3SRkSjzMZtkp SiR7vmzphp9SUDQPOGEXrEuKPOhqXB6v8AFlesLDBfG0Sh4hHFeL0qmqjk+b6tBX pLOKtFdHaLYAvr4AL3RFjIqaAtiumnaxHMQFYnrvV0/G2RevuUFeLMdH9Km4ymwp oLuwtgKwtKRTdYN+uzdgZOo3Vsl2qCKthEXGMeB/7dVJ72Ht0eMRk9YPVRqQAdKk rU2i0l6AU9VlEeis7GfgTD4oVbFV342b/zneWoko0LzPYLfkkWgVdltxvpDPRucv L3W5HcfSQBVSQpzwat8tuw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1718831397; x= 1718917797; bh=WNnfKBMuLk3y/MRYh7uZ9fJL1cNUoEM1QAh/A+tnzfQ=; b=G lQ+8yFNSUp2q67VFS+c+SUHN0SEC3hlKMNqvQPlP/YpoWWCSQviu2N+DKxATung3 dENdKz0oLNN6yzwDewk+qOaOwyAnYAqzVVyjJPEoImklKgDKMSoZWgCqnGbIFvzN YL3JPvCKwPmp5qc4YiIsF/50/sazwKxIsnIwCQaVskIGkwtKXP4OewAWs1oJE7Qb LIaBBh459/1jcOoil76QJzDMj1xWIt15WxeVKV4Z+aGssimABfxeciznbhG2eduQ oQPEYCSnxq/en79A4Bmeml9lqDUHP4g+4y6oob+VnKR6OYT+ai4jd0a8lkGNZ7lb nsCHjwsS2UySefXHplLWQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfeeftddgudehiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefkffggfgfuvfhfhfgjtgfgsehtjeertddtvdejnecuhfhrohhmpeetughr ihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtg homheqnecuggftrfgrthhtvghrnhepiedvhfeiheehgeeuieeljeeitedtjeehudegfeel kedvleekhedtgfeiffefkedunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 19 Jun 2024 17:09:57 -0400 (EDT) Message-ID: <85742b59-6aa1-4527-84fd-a2de76665a9f@aklaver.com> Date: Wed, 19 Jun 2024 14:09:56 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Transaction issue To: Rich Shepard , pgsql-general@postgresql.org References: <65F95FD4-CBEA-4E66-AE63-EBC9F617C988@gmail.com> <7678da90-521-3b52-4bb5-11bc9bdf6d1@appl-ecosys.com> Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 6/19/24 13:54, Rich Shepard wrote: > 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. I should have added to previous post: What is the exact command string you are using to launch psql? > > Regards, > > Rich > > > -- Adrian Klaver adrian.klaver@aklaver.com