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 1sEaoo-002NBW-Sq for pgsql-hackers@arkaria.postgresql.org; Tue, 04 Jun 2024 20:31:44 +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 1sEaoo-002Sjv-NC for pgsql-hackers@arkaria.postgresql.org; Tue, 04 Jun 2024 20:31:42 +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 1sEaoo-002Sj5-Dj for pgsql-hackers@lists.postgresql.org; Tue, 04 Jun 2024 20:31:42 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sEaol-0000i7-Ev for pgsql-hackers@lists.postgresql.org; Tue, 04 Jun 2024 20:31:41 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 454KVY2H584366; Tue, 4 Jun 2024 16:31:34 -0400 From: Tom Lane To: Nathan Bossart cc: pgsql-hackers@lists.postgresql.org, Peter Eisentraut , Victor Yegorov , Pierre Forstmann Subject: Re: Unexpected results from CALL and AUTOCOMMIT=off In-reply-to: References: <90052.1717442890@sss.pgh.pa.us> <378291.1717464748@sss.pgh.pa.us> <538151.1717525723@sss.pgh.pa.us> Comments: In-reply-to Nathan Bossart message dated "Tue, 04 Jun 2024 15:13:12 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <584364.1717533094.1@sss.pgh.pa.us> Date: Tue, 04 Jun 2024 16:31:34 -0400 Message-ID: <584365.1717533094@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Nathan Bossart writes: > On Tue, Jun 04, 2024 at 02:28:43PM -0400, Tom Lane wrote: >> Hence, new patch attached, now with docs and tests. Barring >> objections I'll push this one. > Should we expand the documentation for SPI_connect_ext() to note that > SPI_execute_extended()/SPI_execute_plan_extended() depend on the flag? Perhaps. They already did, in that the atomic flag was taken into account while deciding how to handle a nested CALL; basically what this fix does is to make sure that the snapshot handling is done the same way. I think that what I added to the docs is probably sufficient, but I'll yield to majority opinion if people think not. regards, tom lane