Re: Large table update/vacuum PLEASE HELP!

Поиск
Список
Период
Сортировка
От Lincoln Yeoh
Тема Re: Large table update/vacuum PLEASE HELP!
Дата
Msg-id 5.1.0.14.1.20020417000316.02f40200@192.228.128.13
обсуждение исходный текст
Ответ на Large table update/vacuum PLEASE HELP!  (Dmitry Tkach <dmitry@openratings.com>)
Список pgsql-general
At 11:20 AM 4/16/02 -0400, Dmitry Tkach wrote:

>select * from a limit 1;
>
>Takes about 30 minutes and I have no idea what it is thinking about for so
>long!
>
>If anyone has anyu idea at all what could be the problem, PLEASE HELP!

If a is still something like:

create table a
(
    id int primary key,
    some_data int
);

Try:

vacuum analyze;
explain select * from a order by id limit 1;
select * from a order by id limit 1;

Hopefully the results are good.

Good luck,
Link.




В списке pgsql-general по дате отправления:

Предыдущее
От: Dmitry Tkach
Дата:
Сообщение: Large table update/vacuum PLEASE HELP!
Следующее
От: Jan Wieck
Дата:
Сообщение: Re: Triggers and System Tables