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 1lrptE-00020a-UT for pgsql-hackers@arkaria.postgresql.org; Fri, 11 Jun 2021 22:44:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lrptD-00062i-Sr for pgsql-hackers@arkaria.postgresql.org; Fri, 11 Jun 2021 22:44:35 +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 1lrptD-00062a-LM for pgsql-hackers@lists.postgresql.org; Fri, 11 Jun 2021 22:44:35 +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 1lrptB-00035m-Pq for pgsql-hackers@lists.postgresql.org; Fri, 11 Jun 2021 22:44: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 15BMiSPF2131018; Fri, 11 Jun 2021 18:44:28 -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: References: <73ed9fba-df31-462f-cd4a-28602254cd9f@enterprisedb.com> <68b4d5bd-d9fd-4337-e677-0bc5b3b7db6f@enterprisedb.com> <1! 271666.1623218746@sss.pgh.pa.us> <1272762.1623220109@sss.pgh.pa.us> <06650e9a-086c-0020-614f-f7ff39609c43@enterprisedb.com> <1291662.1623245310@sss.pgh.pa.us> <6abb33e8-db04-3d39-4f9a-7a22a75e0cc8@enterprisedb.com> Comments: In-reply-to Tomas Vondra message dated "Sat, 12 Jun 2021 00:39:02 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2131016.1623451468.1@sss.pgh.pa.us> Date: Fri, 11 Jun 2021 18:44:28 -0400 Message-ID: <2131017.1623451468@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Tomas Vondra writes: > There's one caveat, though - for regular builds the slowdown is pretty > much eliminated. But with valgrind it's still considerably slower. For > postgres_fdw the "make check" used to take ~5 minutes for me, now it > takes >1h. And yes, this is entirely due to the new test case which is > generating / inserting 70k rows. So maybe the test case is not worth it > after all, and we should get rid of it. I bet the CLOBBER_CACHE animals won't like it much either. I suggest what we do is leave it in place for long enough to get a round of reports from those slow animals, and then (assuming those reports are positive) drop the test. regards, tom lane