Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eJSMK-0003Cb-LS for pgsql-hackers@arkaria.postgresql.org; Mon, 27 Nov 2017 22:58:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eJSMK-0005Sc-8d for pgsql-hackers@arkaria.postgresql.org; Mon, 27 Nov 2017 22:58:40 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eJSMJ-0005SN-V4 for pgsql-hackers@lists.postgresql.org; Mon, 27 Nov 2017 22:58:40 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eJSMD-0003AR-I1 for pgsql-hackers@postgresql.org; Mon, 27 Nov 2017 22:58:38 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id vARMwNjp022479; Mon, 27 Nov 2017 17:58:23 -0500 From: Tom Lane To: Dean Rasheed cc: Etsuro Fujita , Ashutosh Bapat , Ildus Kurbangaliev , Dilip Kumar , PostgreSQL Hackers , Robert Haas Subject: Re: [HACKERS] Bug in ExecModifyTable function and trigger issues for foreign tables In-reply-to: References: <20170514150525.0346ba72@postgrespro.ru> <20170515165455.545dd3d6@wp.localdomain> <20170516150516.1b616230@wp.localdomain> <20170615180548.5e142ddc@wp.localdomain> <0bc9c28b-96ca-c875-871e-16af6f53ecd9@lab.ntt.co.jp> <428f1672-df54-de01-91da-b57365193bf4@lab.ntt.co.jp> <6c651916-8fde-f9c9-b199-080df1bf2867@lab.ntt.co.jp> <280720c5-7aad-1136-6be3-654208c8f714@lab.ntt.co.jp> <8065.1500475011@sss.pgh.pa.us> <9cd25d80-08fc-568c-3181-dbe98723d0db@lab.ntt.co.jp> <3e9ff40d-d00f-3363-dcee-97ce023c7884@lab.ntt.co.jp> <14028.1511736992@sss.pgh.pa.us> <18636.1511797772@sss.pgh.pa.us> <20240.1511800536@sss.pgh.pa.us> Comments: In-reply-to Dean Rasheed message dated "Mon, 27 Nov 2017 17:22:00 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <22477.1511823503.1@sss.pgh.pa.us> Date: Mon, 27 Nov 2017 17:58:23 -0500 Message-ID: <22478.1511823503@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Dean Rasheed writes: > On 27 November 2017 at 16:35, Tom Lane wrote: >> On looking closer, the reason it's like that in Fujita-san's patch >> is to minimize the API churn seen by FDW AddForeignUpdateTargets >> functions, specifically whether they see a tlist that's before or >> after what expand_targetlist() does. I'm doubtful that the >> potential savings is worth taking risks there. In particular, >> it seems like a good thing that expand_targetlist() verifies the >> correct tlist ordering *after* the FDW function has acted. >> So now my inclination is to leave this alone. > Ah yes, that seems like a worthwhile check to keep. Never mind then. Pushed with that and some cosmetic fiddling with comments and docs. Thanks for the discussion! regards, tom lane