From: Luiz K. Matsumura <luiz@planit.com.br>
To: pgsql-performance@postgresql.org
Subject: Re: SELECT * FROM table is too slow
Date: Tue, 22 Jan 2008 17:44:33 -0200
Message-ID: <479647A1.6010101@planit.com.br> (raw)
In-Reply-To: <47657068.5070200@commandprompt.com>
References: <47656FC5.8060102@wooh.hu>
<47657068.5070200@commandprompt.com>
> 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 wrote:Hi,
If we run the commands "vacumm full analyze" and "reindex table", this
can be considered as equivalent to making a dump / restore in this case ?
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: luiz@planit.com.br
Subject: Re: SELECT * FROM table is too slow
In-Reply-To: <479647A1.6010101@planit.com.br>
* 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