Hi, On 2022-04-01 16:35:38 -0700, Jeff Davis wrote: > * I don't think we need the stats at all. We can run GROUP BY queries > on the results of pg_get_wal_records_info().
It's well over an order of magnitude slower. And I don't see how that can be avoided. That makes it practically useless. See numbers at the bottom of https://postgr.es/m/CALj2ACUvU2fGLw7keEpxZhGAoMQ9vrCPX-13hexQPoR%2BQRbuOw%40mail.gmail.com Greetings, Andres Freund