Skip site navigation (1) Skip section navigation (2)

Re: SELECT * FROM table is too slow

From: "Luiz K(dot) Matsumura" <luiz(at)planit(dot)com(dot)br>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: SELECT * FROM table is too slow
Date: 2008-01-22 19:44:33
Message-ID: 479647A1.6010101@planit.com.br (view raw or flat)
Thread:
Lists: pgsql-performance
> 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 ?


In response to

Responses

pgsql-performance by date

Next:From: Joshua D. DrakeDate: 2008-01-22 20:19:21
Subject: Re: SELECT * FROM table is too slow
Previous:From: Luiz K. MatsumuraDate: 2008-01-22 19:32:17
Subject: Optimizing queries that use temporary tables

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group