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 1jq2zC-0002bX-JX for pgsql-hackers@arkaria.postgresql.org; Mon, 29 Jun 2020 23:14:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jq2zB-000078-Gk for pgsql-hackers@arkaria.postgresql.org; Mon, 29 Jun 2020 23:14:49 +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 1jq2zB-000071-9o for pgsql-hackers@lists.postgresql.org; Mon, 29 Jun 2020 23:14:49 +0000 Received: from [64.147.123.34] (helo=wforward4-smtp.messagingengine.com) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jq2z8-0006n5-2R for pgsql-hackers@postgresql.org; Mon, 29 Jun 2020 23:14:48 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailforward.west.internal (Postfix) with ESMTP id 9BF655A1; Mon, 29 Jun 2020 19:14:34 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Mon, 29 Jun 2020 19:14:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=Getqh9B3Kv3zuBGEXrc/XAZa/YfK24aaYIw6IGTyM Rg=; b=Q8AOT381U10kDEiUXKbaYyjJMVwSuJHyqVDW3GXo1x0uv1vSO6DL0MSgv DJJlF42egbjoHwFHZ1Y3bJ7ygVYBGadfkXHCVgwnBA7ztLhmN+DV9eqMJjbmLx4d q2HRXs6YaFyUHgTDLyEJdcBh1abCzVYVZufRFqGujn/K5OoUCGJeisTXnG7X0E9h 4wdyLMUqP/wJovx/FU+1JDRy8eQLZzkBU2VpKa9ygD91+RUeZx3X2v0CReCzdCJK aLc59mrWg9usv2B4lTJnD1e1booSnKFSSuF6polw01953sj45XjVzUupdJLGtUED ZXVkNBmcy0AMn/Xw4z3NvsLFZacDA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrvddttddgvddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhohfkffgfgggjtgfgsehtjeertddtfeejnecuhfhrohhmpefrvght vghrucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgvihhsvghnthhrrghuthesvdhnug hquhgrughrrghnthdrtghomheqnecuggftrfgrthhtvghrnhepheeggfdvveekffehtefg teehtedugfelgefgtdffudfhleehfefgudfhffejteehnecuffhomhgrihhnpehpohhsth hgrhgvshhqlhdrohhrghdpvdhnughquhgrughrrghnthdrtghomhenucfkphepleefrddv geefrdduledurddvfeeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrg hilhhfrhhomhepphgvthgvrhdrvghishgvnhhtrhgruhhtsedvnhguqhhurggurhgrnhht rdgtohhm X-ME-Proxy: Received: from april.pezone.net (p5df3bfee.dip0.t-ipconnect.de [93.243.191.238]) by mail.messagingengine.com (Postfix) with ESMTPA id EB76E328005D; Mon, 29 Jun 2020 19:14:32 -0400 (EDT) Subject: Re: pgstattuple: Have pgstattuple_approx accept TOAST tables To: Laurenz Albe , pgsql-hackers References: <27c4496a-02b9-dc87-8f6f-bddbef54e0fe@2ndquadrant.com> From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <21566b5e-eb36-bffd-9cd0-1dd5ea2e5e46@2ndquadrant.com> Date: Tue, 30 Jun 2020 01:14:31 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 64.147.123.34 (deferred) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-06-17 13:39, Laurenz Albe wrote: > On Fri, 2020-04-17 at 13:01 +0200, Peter Eisentraut wrote: >> I alluded to this in [0], but it's better discussed in its own thread. >> >> I think the check that makes pgstattuple_approx reject TOAST tables is a >> mistake. They have visibility and free space map, and it works just >> fine if the check is removed. >> >> Attached is a patch to fix this and add some tests related to how >> pgstattuple and pg_visibility accept TOAST tables for inspection. >> >> >> [0]: >> https://www.postgresql.org/message-id/dc35a398-37d0-75ce-07ea-1dd71d98f8ec@2ndquadrant.com > > I gave the patch a spin, and it passes regression tests and didn't > cause any problems when I played with it. > > No upgrade or dump considerations, of course. > > This is a clear improvement. > > I'll mark the patch as "ready for committer". committed, thanks -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services