Search Postgresql Archives

Re: Statistics mismatch between n_live_tup and actual row count

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This drift gets more confusing. 

My small table A (60K rows) is not being inserted to (except one or two
rows) it is getting thousands of updates a minute. Analyze and vacuum on the
table are running regularly. But sometimes ,every time the vacuum runs the
reltuples value jumps up. Sometime bloating by 4 times the actualy size of
the table (have seen 10 times)

The impact of this on the query plans is evident straight away. Joins from
all  small A to large table B (55 Million rows) on the large B's primary key
start seq scanning.

Some sort of threshold is being hit where the planner believes that the size
of A is big enough that given we are requesting all of A we might as well
scan all of B.

Also even though the table has been clustered and even vacuum full'ed the
relpages value continues to grow.

Any answers?




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


-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux