Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1po7Hc-0006LD-7g for pgsql-general@arkaria.postgresql.org; Sun, 16 Apr 2023 18:39:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1po7Ha-0001sa-AW for pgsql-general@arkaria.postgresql.org; Sun, 16 Apr 2023 18:39:26 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1po7HY-0001sR-Is for pgsql-general@lists.postgresql.org; Sun, 16 Apr 2023 18:39:25 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1po7HV-003HOL-1j for pgsql-general@lists.postgresql.org; Sun, 16 Apr 2023 18:39:23 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 1E17E32000E5; Sun, 16 Apr 2023 14:39:18 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Sun, 16 Apr 2023 14:39:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc: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:sender:subject:subject:to:to; s=fm2; t= 1681670357; x=1681756757; bh=BmTLHXjvg1t23tZMx1XRDYqn9UbT/t7ew1R lAUi2UC8=; b=twXi0HJGSbVucVR5m3lZ/odw1G6lk9jp8M5fydGRsDzSMFPxvpR 7d3ecrPSnocAy8hmqxQCtJyPoQ1fNowJUKlujBS61Z7VQjhA/KE0Ze2iQRFnvmdI QOH+yqyOYFXzILl9S4YOusVGfnmxdfhDf5wDLfWyV4kzZ29neykzOIjknO5hzWA+ O+rUJtHde1UEo4/1u9yEoLA1scQFzEesMnaFlFxNkhjQmz3SfVGeMCw40gIz1Hf9 byo5XKjE8cEbZ2JAGBCXxjbFIKigcCjAOUi2irqQr6WWv5QNvBuCAwgdm0c8YHJu t2ArU4Uudi+baPv3IcD7jmGzd8mGSk3c/KQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1681670357; x=1681756757; bh=BmTLHXjvg1t23tZMx1XRDYqn9UbT/t7ew1R lAUi2UC8=; b=JQEP6HAV09PAJCxFdGQtnKXnL5eJtg9pzf06MFgSq79L5R3fLCk GWP8k2rIace37eJj5kep2Qr3DUDEXzFj+uyARhC2++4+B+CsMAR1XJBXotNlTlmG 637TH8Yp1wzLswDPrYYbGZir0YheHH/T2oCUZt55AfvtGBVesxBWQDJ39wXG0HrP knz/ApA0Am8aXMWw2ggOWawA58thPXfRYQ6kEQ5bYdz0odYWl6HOtA7bsQNyngQw CWFqVGtVvD1jCLgtFKtlC1Smsmqkbw5J/fj26i1DABSvUnXl1tQEQBX70iqggzs8 afhEC0dKNy7ZdfwqzsaYD3p3edliiD82/NA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdelgedgkeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpeetughr ihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtg homheqnecuggftrfgrthhtvghrnheptdfgvdfgieekfedtvdffkeevgffgvefggfehleei ledtjeffffffhefgffehvdffnecuffhomhgrihhnpehpohhsthhgrhgvshhqlhdrohhrgh enucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughr ihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 16 Apr 2023 14:39:16 -0400 (EDT) Message-ID: <3d1058fe-ac68-fbbe-e79e-d07d97d05638@aklaver.com> Date: Sun, 16 Apr 2023 11:39:15 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: PL/pgSQL's "open cur for execute" provides workarouned... Re: cursors with prepared statements To: Bryn Llewellyn , pgsql-general list Cc: "David G. Johnston" , Peter Eisentraut References: <42DB8C32-AC45-4735-8A47-4D7D4DB93E2E@yugabyte.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 4/16/23 11:02, Bryn Llewellyn wrote:> statement fails but doing this using PL/pgSQL succeeds. > > What's going on under the covers? Pretty sure: https://www.postgresql.org/docs/current/spi.html -- Adrian Klaver adrian.klaver@aklaver.com