Hi, On 2023-01-09 17:08:42 +0530, Nitin Jadhav wrote: > +1 to keep common functions/code between table and index stats. Only > the data structure should be different as the goal is to shrink the > current memory usage.
I don't think the goal is solely to shrink memory usage - it's also to make it possible to add more stats that are specific to just indexes or just tables. Of course that's related to memory usage... Greetings, Andres Freund