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

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 (view raw or flat)
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

pgsql-performance by date

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

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