Re: Large table update/vacuum PLEASE HELP!

From: Lincoln Yeoh <lyeoh(at)pop(dot)jaring(dot)my>
To: Dmitry Tkach <dmitry(at)openratings(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Large table update/vacuum PLEASE HELP!
Date: 2002-04-16 16:05:41
Message-ID: 5.1.0.14.1.20020417000316.02f40200@192.228.128.13
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Neil Conway 2002-04-16 16:08:01 Re: function for creating random id
Previous Message Jan Wieck 2002-04-16 15:59:30 Re: Triggers and System Tables