Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wiUfA-000F4z-0e for pgsql-hackers@arkaria.postgresql.org; Sat, 11 Jul 2026 10:10:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wiUf8-003arr-1u for pgsql-hackers@arkaria.postgresql.org; Sat, 11 Jul 2026 10:10:23 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wiUf7-003arc-2L for pgsql-hackers@lists.postgresql.org; Sat, 11 Jul 2026 10:10:23 +0000 Received: from fout-a1-smtp.messagingengine.com ([103.168.172.144]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wiUf6-00000000ANv-1roK for pgsql-hackers@lists.postgresql.org; Sat, 11 Jul 2026 10:10:21 +0000 Received: from phl-compute-05.internal (phl-compute-05.internal [10.202.2.45]) by mailfout.phl.internal (Postfix) with ESMTP id 965B0EC00F3; Sat, 11 Jul 2026 06:10:18 -0400 (EDT) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-05.internal (MEProxy); Sat, 11 Jul 2026 06:10:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1783764618; x=1783851018; bh=tG7Mk3xvsm 3MMm1xFonhHwLdCwmpfMZsVOM7noSDqlk=; b=H0jX0ftz3bhuYFOaTKgLwrB0T5 grrO2/MuGXwXP2EqKpg9XZwaxuNL90zqgD3dW1baLYL6V7jMO4BAFOqJxbgmy9Uz n2vn9Ja/nqplH2sxtczWcbPntkDNSF60LFzjbitcoU/EjbffGNcY1/51rEJz/MBd wB+4miCpCuOcErUetisxXXcTugzOVj1ENIXmPYo47VDfwqahRUqa7poejwOTx37F gKff3ZwsDFnjOhUDU+syzgOQa28LD/wnhSqxvtSRq6wUzObG1Jx9BzhqFsHbV9dn Kr35Uk3anhSPGNZBlXu40PFHLUTuuXOSnhJr0rCX6adlR+33eWnUq0DQ/O5A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1783764618; x=1783851018; bh=tG7Mk3xvsm3MMm1xFonhHwLdCwmpfMZsVOM 7noSDqlk=; b=W2SwVsFgBRMTtKr2N/GFYz1Uij+RXi58JnDcgeoBOL4Q7aJdfbe d+GT7YK4YIFbjYj41CAfhLwAMcAc6PRGLWFzswKJ/wAsnTyrcxnQaps8C07mY4ej n8TBqGUTgeg/Ey7SUzbi9q4TRU7QtHR4l6kT7pWXojEW7A1nZlipps0PEDPVWSiZ YZ5CMGCY4B+EMXQnd37A1ZSuECEctyxs/lXAim9zTHXAOABCIU1W/rTUwCKfI+xu /x+ltlfjQwsnEvwZHK6MwMSRjtxPx+NJdIxmQR+Iox4eeq2IQToLKmxlBT9BdZyD qv7kN9ZwsfUAiIKrPEOeg4lZeDjIyVNYVQQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTGMiWOIAniVQPVJuDVUjF9Bphed9UHBPg4eLYEIqqRAx7e+sP9eE5VP208YCZ3xZ9 LKYWgj/M2VrL2b1elcOaW5OA7sViN2gqCeQVEawJEyvpnz26/+wh/y5EWQIVVd9B9bbXgu TFhZiZvvyR1NNlulkIWIXnt63JylzBFsaKgieacnlCQHcxZqPiLYcPMequLR+TP7+xc1cQ zbm5UP2eDBrxwTriSDN0MXhfGGG55i79fiPiQDz3Rzk8hzMBxToXXS1M69A3V17PoIpETc SCkkYHXb0enAOdCUlpFtfqhwiNhu/HvGWJKoNEBSPcmddLYxDSZ2/zYjLJ+5JU6BnDoyJ3 +VZEAU+5GQjTb+nFVyimjldhAfzFAaWFmeJWcaZphFjjK3svDH5wEbm86s71nMao5ytR2n wCiCEGZhX3XRX+hb4kpf5AUHwqReNhE0DN7PyNWa18E9fCv+XM23+hHC1xjieH2Qcp2j3l 1qi+2iaLeNXIuRyNzLt1p7FIFIbE+AcWVMQNPw7r2h1IVh41ODnoUJi07NsZLjpTyfZvef ic6nIHnFgxF/nwvxIspeVG1uDGcz0K6a9PJnk90iMFeNWtROnzVfVs2Wl/j8lMf5MwMOCk 3izJT3axA72J8TUs6FQQPlfaPJXICi7E7ZA4K/bxPn4FX9c44gxZZ5Nb1Dlw X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 11 Jul 2026 06:10:16 -0400 (EDT) Date: Sat, 11 Jul 2026 19:10:10 +0900 From: Michael Paquier To: Bertrand Drouvot Cc: Andres Freund , Kirill Reshke , Robert Haas , pgsql-hackers@lists.postgresql.org Subject: Re: relfilenode statistics Message-ID: References: <74242uhjpufa2tsb6dqot7cvhhyxjbhfo273wpooo6hizbdg6o@f45d72gt2ujb> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="LgLhLaYMoJBPvAkc" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --LgLhLaYMoJBPvAkc Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jul 11, 2026 at 04:16:13AM +0000, Bertrand Drouvot wrote: > Maybe resume this thread [1] instead of creating a new one? It's in this = thread > that it has been suggested to start with relfilenode stats first [2] but = that > was due to the design of the patch at that time that may not apply to you= rs (did > not look at it yet). >=20 > [1]: https://postgr.es/m/f572abe7-a1bb-e13b-48c7-2ca150546822%40gmail.com > [2]: https://postgr.es/m/20230105002733.ealhzubjaiqis6ua%40awork3.anaraze= l.de Honestly, I don't know which way is the best. This was 3 years ago so starting afresh may be better at the end. Please note that I have spent a couple of hours eyeing at your previous patch, where I'd like to think that I have found an approach with a better balance, finishing by being less invasive. The two main points are 1) the handling of the xact data for a split for the fields we care about and 2) a union structure felt less intrusive, but these two points really come down to where you want to put a separation line. Another side thing is the renaming of the SQL functions for non-index relkinds, your patch using *_tab_*. -- Michael --LgLhLaYMoJBPvAkc Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmpSFoIACgkQnvQgOdby QH20vA//TOIlv21UiUGapSXNMZ/fbCW7+4Efa9/2RsnxiHXLYK85n9mZvlBIyu5u zLOrdxH1kmwu2pjgRfwe4N920+hPLUja1iGHjx0tI5fbs4nq48Lq+8YUiTTJW2FJ MehA44uK7MTCPznfKqhpQUDA01sVXRX5KYPXZ6M7+/+Cdzdu8WDUZFiPvD3mdTCY r4olOws7Go/C2FzBOZbPENcoBzyKJ1B45cTVxPklxxQzMBbhi5q+P5jrAFTLxMvP H43wUjTkW1UU8woW8JPqT4D3sKFfQu3dL6lKlNmJN+WLaQu4qt0JDH9sGkx4v538 tq64b0jJGzcAC4JFiNevuPNETJteUOZajkrrgOfDW93xlYpW2lCesGjtIhC6xkI0 m+/OMrFbwQ18CyIM2xpl+vfbfHmltt0CP6uLdwMMjtmh27t4zbWZFxCaYf1k0n8t Ojjtq80Ab6K9ZT5jpb4cuPWA96YcATiGvEqt2xm3nywLeTPDNYKylxF3r+gDfT01 jPbcqXnRa9ZaxjT0eNdXfx21EMLCwRS+/IbQybmfsMZ6M2R8N6wJzirZtgZNpKZ7 Woa6pI2uwBAAZZJvvsP1RqcYlX+dxP3nXA1DUwQEey66xnceJOnxD2O0cBFZr/aq RJGQI9sxGztyVEL30gzCJU0E7KLqJjl+tqPXQFb0SkIWDwc9P1U= =FUls -----END PGP SIGNATURE----- --LgLhLaYMoJBPvAkc--