Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 41F4E2E0283 for ; Sun, 16 Dec 2007 15:03:58 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 93722-09 for ; Sun, 16 Dec 2007 15:03:56 -0400 (AST) Received: from cassarossa.samfundet.no (cassarossa.samfundet.no [129.241.93.19]) by postgresql.org (Postfix) with ESMTP id 65BD32E0284 for ; Sun, 16 Dec 2007 15:03:55 -0400 (AST) Received: from trofast.ipv6.sesse.net ([2001:700:300:1803:20e:cff:fe36:a766] helo=trofast.sesse.net) by cassarossa.samfundet.no with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1J3ymG-0008OB-EI; Sun, 16 Dec 2007 20:03:53 +0100 Received: from root by trofast.sesse.net with local (Exim 4.68) (envelope-from ) id 1J3ymB-0007IT-6P; Sun, 16 Dec 2007 20:03:47 +0100 Date: Sun, 16 Dec 2007 20:03:47 +0100 From: "Steinar H. Gunderson" To: Adam PAPAI Cc: pgsql-performance@postgresql.org Subject: Re: SELECT * FROM table is too slow Message-ID: <20071216190347.GA28010@uio.no> Mail-Followup-To: Adam PAPAI , pgsql-performance@postgresql.org References: <47656FC5.8060102@wooh.hu> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <47656FC5.8060102@wooh.hu> X-Operating-System: Linux 2.6.20.4 on a x86_64 X-Message-Flag: Outlook? --> http://www.mozilla.org/products/thunderbird/ User-Agent: Mutt/1.5.17 (2007-11-01) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200712/248 X-Sequence-Number: 28064 On Sun, Dec 16, 2007 at 07:34:45PM +0100, Adam PAPAI wrote: > Why does it take cca 18-20 sec to get the results? > Too many indexes? You cannot possibly have VACUUMed in a long time. Try a VACUUM FULL, and then schedule regular VACUUMs (or use autovacuum). /* Steinar */ -- Homepage: http://www.sesse.net/