Received: from localhost (unknown [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 1DE002E01DB for ; Sun, 16 Dec 2007 18:50:12 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 64101-07 for ; Sun, 16 Dec 2007 18:50:05 -0400 (AST) Received: from pillette.com (adsl-67-119-5-202.dsl.snfc21.pacbell.net [67.119.5.202]) by postgresql.org (Postfix) with ESMTP id CB6F12E01CD for ; Sun, 16 Dec 2007 18:50:05 -0400 (AST) Received: (from andrew@localhost) by pillette.com (8.11.6/8.11.6) id lBGMntO03918; Sun, 16 Dec 2007 14:49:55 -0800 Date: Sun, 16 Dec 2007 14:49:55 -0800 From: andrew@pillette.com Message-Id: <200712162249.lBGMntO03918@pillette.com> Subject: Re: SELECT * FROM table is too slow To: Adam PAPAI Cc: pgsql-performance@postgresql.org X-Originating-IP: 71.135.44.168 X-Mailer: Webmin 0.940 MIME-Version: 1.0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.866 tagged_above=0 required=5 tests=AWL=-0.164, BAYES_20=-0.74, FH_HOST_EQ_PACBELL_D=1.67, RDNS_DYNAMIC=0.1 X-Spam-Level: Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Archive-Number: 200712/253 X-Sequence-Number: 28069 Adam PAPAI wrote .. > Hi pgsql-performance, > > I've a problem with the select * on a small table. > I can think of two possibilities for such incredibly slow performance. One: your table has not been VACUUMed for a long time and is full of dead tuples. Try VACUUM FULL on it, or CLUSTER on the most frequently used index. Two: did you accidentally put the database on your floppy drive?