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 1rnLJl-00CoWj-W8 for psycopg@arkaria.postgresql.org; Thu, 21 Mar 2024 16:31: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 1rnLJk-00Ehjf-Lg for psycopg@arkaria.postgresql.org; Thu, 21 Mar 2024 16:31: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 1rnLJk-00EhjX-FO for psycopg@lists.postgresql.org; Thu, 21 Mar 2024 16:31:00 +0000 Received: from fhigh5-smtp.messagingengine.com ([103.168.172.156]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rnLJh-005hKa-AQ for psycopg@lists.postgresql.org; Thu, 21 Mar 2024 16:30:59 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 08A641140146; Thu, 21 Mar 2024 12:30:57 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Thu, 21 Mar 2024 12:30: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=1711038657; x=1711125057; bh=qhOUY8ft2/eN38So4vEIYAmFCEiv37GP1DF2Q4k1P6Q=; b= jR5jYNdZz68edv5tYBhdr6gq+yRJImkf5ECwcLC/e+9Y+Qe+vQ4a2xIBlV9lc7tb XCn4++0os4tcPpD4TKy/HtkPhbQHsTsaY9Pz+Y8zVaH0MVxERvd38kz42sXn+dcl ccUg91ldnNMQQwD7reiD4zlw0Jbq1IO5YhbvFGnUgZveCaqBfSHfXtpEq8AmNup6 UaApySki2qp6datPrXzJdk+bYMgkDQlmX/jDSyd4xzzcLdwe+5aDdjhi7j7HFG7c RTGMNYvjWmUXjbhmToEffv2iopV08B8+Hkq05Bou4ld7EiJlkfU1b+SOqDC4SWed eFbWerI03VEhL4s3+Ei3BA== 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=1711038657; x= 1711125057; bh=qhOUY8ft2/eN38So4vEIYAmFCEiv37GP1DF2Q4k1P6Q=; b=Q e3VJ+b0XQ+sX3C77ZgSz77KOKHRpxUGkGAC1SY+RpCYjykRCVgtyLRt3mlmk4/Cg +ECnkfEforhsKI3coOvBqfn160Q5f/xlE17X97h6k+/whHL9yQDcI34N9yCVbMDg OcCxr6klBdrWs7FiEX8Rs3BuScsEBjMBlG6c8WMbtap049htgxXyI6i+uUOzYszv zR+Is8yz08DWzqCGc1HLIzaWBwaZTBpzmZRarPsLGSt+W5Y27mni0/s0Okbe8Z3t azZUbjP3/KrfMWJ2vz0lGSpUE9sjiyzF49iyupC8r0vX8+zGfyWMD0Ts1QlgULTu kuIreiiDcjOCr4IDEpnLQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrleejgddvjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfhfhfgjtgfgsehtjeertddtvdejnecuhfhrohhmpeetughrihgr nhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh eqnecuggftrfgrthhtvghrnhepiedvhfeiheehgeeuieeljeeitedtjeehudegfeelkedv leekhedtgfeiffefkedunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrg hilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 21 Mar 2024 12:30:56 -0400 (EDT) Message-ID: Date: Thu, 21 Mar 2024 09:30:55 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: After 10 -> 15 upgrade getting "cannot commit while a portal is pinned" on one python function Content-Language: en-US To: Jeff Ross , psycopg@lists.postgresql.org References: <7b43f00b-5033-4975-b882-252cfcf40c54@openvistas.net> From: Adrian Klaver In-Reply-To: <7b43f00b-5033-4975-b882-252cfcf40c54@openvistas.net> 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 3/21/24 09:06, Jeff Ross wrote: > Greetings! > > I posted a version of this to the pgsql-general mailing list yesterday. > Since then I've narrowed down the error to this line: > > prod_database_connection.commit() > > so I believe this is psycopg2 related. Does it work outside of plpython3u? > > This is on CentOS 7 and I'm using python3-psycopg2.x86_64 2.8.6-1.rhel7 > installed from yum. psycopg2 is up to 2.9.9. You are missing ~3 years of fixes. > > makes me wonder if this error is specific to plpython3? Hard to say as the other bug report you linked to seemed to refer to plpythonu. > Jeff > > -- Adrian Klaver adrian.klaver@aklaver.com