Re: relfilenode statistics - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: relfilenode statistics
Date
Msg-id alG8F9lVldB3WseN@paquier.xyz
Whole thread
In response to Re: relfilenode statistics  (Andres Freund <andres@anarazel.de>)
Responses Re: relfilenode statistics
List pgsql-hackers
On Fri, Jul 10, 2026 at 09:09:39AM -0400, Andres Freund wrote:
> On 2026-07-10 15:05:35 +0900, Michael Paquier wrote:
>> So, we have discussed that a couple of days ago offline, and I still
>> felt uncomfortable to not do a cleanup of the relation stats data for
>> indexes.  A lot of the fields are stored in memory and written in the
>> file, and remain unused for indexes.
>
> Why solve that as part of this thread / redesign, rather than as an orthogonal
> issue?

Because I was under the impression that separating the counters first
made the implementation of the relfilenode stats and the recomputation
of them during WAL replay much cleaner, and after putting my hands on
it myself, well, I still do.  True enough that this deserves a thread
of its own, though.  Will do so after cleaning up a few things in the
first two patches.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Henson Choi
Date:
Subject: Re: Improve the performance of Unicode Normalization Forms.
Next
From: Michael Paquier
Date:
Subject: Re: BF mamba failure