Re: Mismatched pg_class.reltuples between table and primary key - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: Mismatched pg_class.reltuples between table and primary key
Date
Msg-id 20131203003512.GG5731@eldon.alvh.no-ip.org
Whole thread Raw
In response to Mismatched pg_class.reltuples between table and primary key  (bricklen <bricklen@gmail.com>)
Responses Re: Mismatched pg_class.reltuples between table and primary key
List pgsql-general
bricklen escribió:
> We recently experienced a hard crash of a dev server due to lack of
> resources (we think, still investigating).
> That resulted in an interesting scenario where one of the tables was
> returning 12 rows from "select * from tbl", but "select * from tbl order by
> <pk column>" was only returning 11.
> Looking at pg_class.reltuples, it could be clearly seen that the table in
> question had a value of 12, but the primary key had only 11.

This sounds very similar to what was reported in
http://www.postgresql.org/message-id/20131126123244.GI23284@alap2.anarazel.de

In short, you probably want to make sure to upgrade to this week's
release.

--
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services


pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Mismatched pg_class.reltuples between table and primary key
Next
From: bricklen
Date:
Subject: Re: Mismatched pg_class.reltuples between table and primary key