From: Joshua D. Drake <jd@commandprompt.com>
To: Adam PAPAI <wooh@wooh.hu>
Cc: pgsql-performance@postgresql.org
Subject: Re: SELECT * FROM table is too slow
Date: Sun, 16 Dec 2007 10:37:28 -0800
Message-ID: <47657068.5070200@commandprompt.com> (raw)
In-Reply-To: <47656FC5.8060102@wooh.hu>
References: <47656FC5.8060102@wooh.hu>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: jd@commandprompt.com, wooh@wooh.hu
Subject: Re: SELECT * FROM table is too slow
In-Reply-To: <47657068.5070200@commandprompt.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox