reltuples value less than rows in the table.

From: parul <i(dot)parultyagi(at)gmail(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Subject: reltuples value less than rows in the table.
Date: 2011-08-24 10:04:36
Message-ID: 1314180276903-4729917.post@n5.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

I have a index in a table. The value of the reltuples value in the pg_class
table for this index is less than the number of rows in the table where the
index is present.
For eg. if i have 800 rows in the table , the reltuples in the pg_class for
the index show the value as 769.
What are the scenarios under which this kind of behaviour occurs?
Also iam not able to execute the queries involving the indexed column in the
where clause.
Please suggest the probable cause for this.
Also if i do a reindex on the table, the reltuple values updates to the
current no. of rows ie. 800.

--
View this message in context: http://postgresql.1045698.n5.nabble.com/reltuples-value-less-than-rows-in-the-table-tp4729917p4729917.html
Sent from the PostgreSQL - performance mailing list archive at Nabble.com.

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Venkat Balaji 2011-08-24 11:07:02 Re: How to track number of connections and hosts to Postgres cluster
Previous Message Guillaume Lelarge 2011-08-24 07:49:04 Re: How to track number of connections and hosts to Postgres cluster