Re: Statistics mismatch between n_live_tup and actual row count - Mailing list pgsql-general

From tim_wilson
Subject Re: Statistics mismatch between n_live_tup and actual row count
Date
Msg-id 1354681057068-5735108.post@n5.nabble.com
Whole thread Raw
In response to Re: Statistics mismatch between n_live_tup and actual row count  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Statistics mismatch between n_live_tup and actual row count  (tim_wilson <tim.wilson@telogis.com>)
List 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.


pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: ts_headline and query with hyphen
Next
From: Chris Angelico
Date:
Subject: Re: how do I grant select to one user for all tables in a DB?