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 1lqrhe-0004fY-Rb for pgsql-hackers@arkaria.postgresql.org; Wed, 09 Jun 2021 06:28:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lqrhc-00006P-Nz for pgsql-hackers@arkaria.postgresql.org; Wed, 09 Jun 2021 06:28:36 +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 1lqrhc-000069-G8 for pgsql-hackers@lists.postgresql.org; Wed, 09 Jun 2021 06:28:36 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lqrhZ-0004d9-SM for pgsql-hackers@lists.postgresql.org; Wed, 09 Jun 2021 06:28:35 +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 1596STwo1272763; Wed, 9 Jun 2021 02:28:29 -0400 From: Tom Lane To: Tomas Vondra cc: Bharath Rupireddy , "houzj.fnst@fujitsu.com" , PostgreSQL Hackers Subject: Re: Fdw batch insert error out when set batch_size > 65535 In-reply-to: <1271666.1623218746@sss.pgh.pa.us> References: <73ed9fba-df31-462f-cd4a-28602254cd9f@enterprisedb.com> <68b4d5bd-d9fd-4337-e677-0bc5b3b7db6f@enterprisedb.com> <1! 271666.1623218746@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Wed, 09 Jun 2021 02:05:46 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1272761.1623220109.1@sss.pgh.pa.us> Date: Wed, 09 Jun 2021 02:28:29 -0400 Message-ID: <1272762.1623220109@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk I wrote: > Bharath Rupireddy writes: >>> I've added a simple regression test to postgres_fdw, testing that batch >>> sizes > 65535 work fine, and pushed the fix. >> I was earlier thinking of adding one, but stopped because it might >> increase the regression test execution time. It looks like that's true >> - with and without the test case it takes 17 sec and 4 sec >> respectively on my dev system which is 4X slower. I'm not sure if this >> is okay. > The cost, versus the odds of ever detecting a problem, doesn't > seem like a good tradeoff. I took a quick look and noted that on buildfarm member longfin (to take a random example that's sitting a few feet from me), the time for contrib-install-check went from 34 seconds before this patch to 40 seconds after. I find that completely unacceptable compared to the likely value of this test case. regards, tom lane