Thread: pg_repack and table statistics

pg_repack and table statistics

From
Wells Oliver
Date:
I find that the n_dead_tup value in pg_stat_user_tables is the same before and after a successful pg_repack of that table (ditto all the values really). Is there something that should be done after a repack to have those stats updated, or is their unchanging value a sign of repack failing for some reason?

--

Re: pg_repack and table statistics

From
Wells Oliver
Date:
Hmm, apologies, I'd delete this if I could, I was looking at stale data for pg_stat_user_tables, it indeed has a n_dead_tup of 0 after a repack.

On Wed, Aug 28, 2024 at 9:16 PM Wells Oliver <wells.oliver@gmail.com> wrote:
I find that the n_dead_tup value in pg_stat_user_tables is the same before and after a successful pg_repack of that table (ditto all the values really). Is there something that should be done after a repack to have those stats updated, or is their unchanging value a sign of repack failing for some reason?

--


--