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 1oywpz-0003Nd-8P for pgsql-hackers@arkaria.postgresql.org; Sat, 26 Nov 2022 15:11:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oywpw-0002A0-BK for pgsql-hackers@arkaria.postgresql.org; Sat, 26 Nov 2022 15:11:24 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oywpw-00029r-2I for pgsql-hackers@lists.postgresql.org; Sat, 26 Nov 2022 15:11:24 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oywpq-0000nu-IK for pgsql-hackers@lists.postgresql.org; Sat, 26 Nov 2022 15:11:23 +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 2AQFBFoj115834; Sat, 26 Nov 2022 10:11:15 -0500 From: Tom Lane To: Etsuro Fujita cc: Tomas Vondra , PostgreSQL Hackers Subject: Re: postgres_fdw: batch inserts vs. before row triggers In-reply-to: References: <4065383.1669395453@sss.pgh.pa.us> Comments: In-reply-to Etsuro Fujita message dated "Sat, 26 Nov 2022 20:38:11 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <115832.1669475475.1@sss.pgh.pa.us> Date: Sat, 26 Nov 2022 10:11:15 -0500 Message-ID: <115833.1669475475@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Etsuro Fujita writes: > On Sat, Nov 26, 2022 at 1:57 AM Tom Lane wrote: >> Couldn't we add the field to ModifyTableState, instead? > We could probably do so, but I thought having a global list would be > more efficient to handle pending buffered inserts than that. OK, as long as there's a reason for doing it that way, it's OK by me. I don't think that adding a field at the end of EState is an ABI problem. We have to do something else than add to ResultRelInfo, though. regards, tom lane