Received: from localhost (unknown [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 2E3872E023C for ; Sun, 16 Dec 2007 14:34:54 -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 04762-03 for ; Sun, 16 Dec 2007 14:34:50 -0400 (AST) Received: from astatine.digitalinfluence.hu (digitalinfluence.hu [195.228.155.191]) by postgresql.org (Postfix) with ESMTP id E01A32E023B for ; Sun, 16 Dec 2007 14:34:49 -0400 (AST) Received: from localhost (localhost.digitalinfluence.hu [127.0.0.1]) by astatine.digitalinfluence.hu (Postfix) with ESMTP id 8ACAA3CC3C5 for ; Sun, 16 Dec 2007 19:34:47 +0100 (CET) Received: from astatine.digitalinfluence.hu ([127.0.0.1]) by localhost (astatine.digitalinfluence.hu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23931-05 for ; Sun, 16 Dec 2007 19:34:46 +0100 (CET) Received: from helium.local (catv-5063032d.catv.broadband.hu [80.99.3.45]) by astatine.digitalinfluence.hu (Postfix) with ESMTP id C44853CC3B6 for ; Sun, 16 Dec 2007 19:34:45 +0100 (CET) Message-ID: <47656FC5.8060102@wooh.hu> Date: Sun, 16 Dec 2007 19:34:45 +0100 From: Adam PAPAI User-Agent: Thunderbird 2.0.0.9 (Macintosh/20071031) MIME-Version: 1.0 To: pgsql-performance@postgresql.org Subject: SELECT * FROM table is too slow Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at wooh.hu X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200712/244 X-Sequence-Number: 28060 Hi pgsql-performance, I've a problem with the select * on a small table. See below: x7=# EXPLAIN ANALYZE select * from megjelenesek; QUERY PLAN --------------------------------------------------------------------------------------------------------------------- Seq Scan on megjelenesek (cost=0.00..15633.07 rows=207 width=52) (actual time=103.258..18802.530 rows=162 loops=1) Total runtime: 18815.362 ms (2 rows) x7=# \d megjelenesek; Table "public.megjelenesek" Column | Type | Modifiers -------------+-----------------------------+------------------------------------------------------------ idn | integer | not null default nextval('megjelenesek_idn_seq'::regclass) tag_id | integer | tag_wlap_id | integer | get_date | timestamp without time zone | default now() megjelent | numeric | default 0 Indexes: "megjelenesek_pkey" PRIMARY KEY, btree (idn) "megjelenesek_tag_id" hash (tag_id) "megjelenesek_tag_wlap_id" hash (tag_wlap_id) 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? -- Adam PAPAI D i g i t a l Influence http://www.wooh.hu E-mail: wooh@wooh.hu Phone: +36 30 33-55-735 (Hungary)