postgresql/src/backend/postmaster
Tom Lane 115f414124 Fix VACUUM's reporting of dead-tuple counts to the stats collector.
Historically, VACUUM has just reported its new_rel_tuples estimate
(the same thing it puts into pg_class.reltuples) to the stats collector.
That number counts both live and dead-but-not-yet-reclaimable tuples.
This behavior may once have been right, but modern versions of the
pgstats code track live and dead tuple counts separately, so putting
the total into n_live_tuples and zero into n_dead_tuples is surely
pretty bogus.  Fix it to report live and dead tuple counts separately.

This doesn't really do much for situations where updating transactions
commit concurrently with a VACUUM scan (possibly causing double-counting or
omission of the tuples they add or delete); but it's clearly an improvement
over what we were doing before.

Hari Babu, reviewed by Amit Kapila
2014-01-18 19:24:33 -05:00
..
autovacuum.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
bgworker.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
bgwriter.c Logging running transactions every 15 seconds. 2014-01-15 12:41:20 -05:00
checkpointer.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
fork_process.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
Makefile Allow background workers to be started dynamically. 2013-07-16 13:02:15 -04:00
pgarch.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
pgstat.c Fix VACUUM's reporting of dead-tuple counts to the stats collector. 2014-01-18 19:24:33 -05:00
postmaster.c Fix possible crashes due to using elog/ereport too early in startup. 2014-01-11 16:36:07 -05:00
startup.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
syslogger.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
walwriter.c Update copyright for 2014 2014-01-07 16:05:30 -05:00