Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eGavK-00048f-LX for pgsql-committers@arkaria.postgresql.org; Mon, 20 Nov 2017 01:30:58 +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 1eGavK-0001dt-2v for pgsql-committers@arkaria.postgresql.org; Mon, 20 Nov 2017 01:30:58 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eGavJ-0001dj-Ur for pgsql-committers@lists.postgresql.org; Mon, 20 Nov 2017 01:30:57 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eGavC-0001UC-6v for pgsql-committers@postgresql.org; Mon, 20 Nov 2017 01:30:57 +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 vAK1Uj5F008973; Sun, 19 Nov 2017 20:30:45 -0500 From: Tom Lane To: Andres Freund cc: Simon Riggs , pgsql-committers Subject: Re: pgsql: Parameter toast_tuple_target controls TOAST for new rows In-reply-to: <20171120005224.lgc5lourngvsibjv@alap3.anarazel.de> References: <20171120001538.eugu2wmjpepq3hl5@alap3.anarazel.de> <7371.1511138941@sss.pgh.pa.us> <20171120005224.lgc5lourngvsibjv@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Sun, 19 Nov 2017 16:52:24 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <8971.1511141445.1@sss.pgh.pa.us> Date: Sun, 19 Nov 2017 20:30:45 -0500 Message-ID: <8972.1511141445@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andres Freund writes: > On 2017-11-19 19:49:01 -0500, Tom Lane wrote: >> TBH, I would just remove those test cases. Even if they were stable >> across platforms, they don't directly prove anything at all about >> whether the feature does what it's supposed to. > I think it might make sense to rewrite the tests so it doesn't output > any of the sizes, but instead just compares the size of tables with > different thresholds. That should be fairly reliable. Hm, what I'd try after a bit of thought is to stuff the same data into two different tables with different settings chosen to make it TOAST or not, and then just test the toast tables for zero or nonzero size. Setting STORAGE = EXTERNAL on the data column to disable compression would help make things more stable, too. regards, tom lane