Re: BUG #14057: vacuum setting reltuples=0 for tables with >0 tuples

Andres Freund <andres@anarazel.de>

From: Andres Freund <andres@anarazel.de>
To: andrew@tao11.riddles.org.uk
Cc: pgsql-bugs@postgresql.org
Date: 2016-03-31T10:41:29Z
Lists: pgsql-bugs
Hi Andrew,

On 2016-03-31 10:37:39 +0000, andrew@tao11.riddles.org.uk wrote:
> It looks like fixing this requires breaking scanned_pages out into at least
> two separate counters, since we currently use it to track both whether we
> can update stats, and whether we can update relfrozenxid.

Are you planning to submit a fix?

- Andres


Commits

  1. Avoid having vacuum set reltuples to 0 on non-empty relations in the