Skip site navigation (1) Skip section navigation (2)

Re: Curious about dead rows.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Russell Smith <mr-russ(at)pws(dot)com(dot)au>
Cc: Jean-David Beyer <jeandavid8(at)verizon(dot)net>, pgsql-performance(at)postgresql(dot)org
Subject: Re: Curious about dead rows.
Date: 2007-11-14 22:46:24
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-performance
Russell Smith <mr-russ(at)pws(dot)com(dot)au> writes:
> It is possible that analyze is not getting the number of dead rows right?

Hah, I think you are on to something.  ANALYZE is telling the truth
about how many "dead" rows it saw, but its notion of "dead" is "not good
according to SnapshotNow".  Thus, rows inserted by a not-yet-committed
transaction would be counted as dead.  So if these are background
auto-analyzes being done in parallel with inserting transactions that
run for awhile, seeing a few not-yet-committed rows would be

I wonder if that is worth fixing?  I'm not especially concerned about
the cosmetic aspect of it, but if we mistakenly launch an autovacuum
on the strength of an inflated estimate of dead rows, that could be

			regards, tom lane

In response to


pgsql-performance by date

Next:From: Merlin MoncureDate: 2007-11-15 01:56:32
Subject: Re: dell versus hp
Previous:From: Alan HodgsonDate: 2007-11-14 22:39:50
Subject: Re: dell versus hp

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group