Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id E9B102E01DA for ; Sun, 16 Dec 2007 14:37:33 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 08980-01 for ; Sun, 16 Dec 2007 14:37:29 -0400 (AST) Received: from lists.commandprompt.com (host-159.commandprompt.net [207.173.203.159]) by postgresql.org (Postfix) with ESMTP id 3AB052E0133 for ; Sun, 16 Dec 2007 14:37:30 -0400 (AST) Received: from [192.168.1.226] (or-69-34-217-90.sta.embarqhsd.net [69.34.217.90]) (authenticated bits=0) by lists.commandprompt.com (8.13.8/8.13.8) with ESMTP id lBGIbPSe012699 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 16 Dec 2007 10:37:29 -0800 Message-ID: <47657068.5070200@commandprompt.com> Date: Sun, 16 Dec 2007 10:37:28 -0800 From: "Joshua D. Drake" Organization: Command Prompt, Inc. User-Agent: Thunderbird 1.5.0.13 (Windows/20070809) MIME-Version: 1.0 To: Adam PAPAI CC: pgsql-performance@postgresql.org Subject: Re: SELECT * FROM table is too slow References: <47656FC5.8060102@wooh.hu> In-Reply-To: <47656FC5.8060102@wooh.hu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0 (lists.commandprompt.com [207.173.203.159]); Sun, 16 Dec 2007 10:37:29 -0800 (PST) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200712/245 X-Sequence-Number: 28061 Adam PAPAI wrote: > Hi pgsql-performance, > > I've a problem with the select * on a small table. > > See below: > > > x7=# SELECT count(idn) from megjelenesek; > count > ------- > 162 > (1 row) > > Why does it take cca 18-20 sec to get the results? > Too many indexes? You likely have a huge amount of dead rows. Try dumping and restoring the table and remember to run vacuum (or autovacuum) often. Sincerely, Joshua D. Drake