Re: Statistics mismatch between n_live_tup and actual row count

From: tim_wilson <tim(dot)wilson(at)telogis(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Statistics mismatch between n_live_tup and actual row count
Date: 2012-12-05 04:17:37
Message-ID: 1354681057068-5735108.post@n5.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I am also seeing a drift in the n_live_tup value compared to actual row count
on the table on PG9.0.6

It drifts after a vacuum , you can bring it back closer to the actual number
by running ANALYSE several times, you can lock it back into the right value
with a vacuum full, but then if you run a vacuum it shows a n_live_tup less
than the actual rows in the table.

This is on a table seeing 80% HOT updates. Its a table that is heavily
updated.

Server not running autovacuum

Tim

--
View this message in context: http://postgresql.1045698.n5.nabble.com/Statistics-mismatch-between-n-live-tup-and-actual-row-count-tp5059317p5735108.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Chris Angelico 2012-12-05 04:41:28 Re: how do I grant select to one user for all tables in a DB?
Previous Message Tom Lane 2012-12-05 03:49:21 Re: ts_headline and query with hyphen