Re: a "huge" table with small rows and culumns

From: Denis Perchine <dyp(at)perchine(dot)com>
To: "Esa Pikkarainen" <epikkara(at)ktk(dot)oulu(dot)fi>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: a "huge" table with small rows and culumns
Date: 2000-12-19 12:51:55
Message-ID: 0012191851550B.08280@dyp.perchine.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> > > If this is a production database that is being used by a lot of people,
> > > you should run the vacuum on a regular basis, like maybe overnight as a
> > > cron job.
> >
> > That's really bad idea if you have 7.0.x. There are deadlocks possible.
> > :-(((
>
> Hey, I thought this is a standard method???!!! What do you suggest
> instead?

Yes, this is standard method. But there is really bad deadlock inside 7.0.x
code. And it is possible that if you have high load on database, vacuum will
just locked waiting for a lock, while some other backend will need lock
vacuum have for other operation. This fixed in current CVS a month ago, but
there is no patch for 7.0.x. I am not so sure in my knowledge of postgresql
internals to fix this. If you are not worry, you can run on 7.1.x (I would
not recommend this).

All above means that there is no real solutions. If your database is not
heavily loaded you will never see such problems. I saw them each day until I
did not remove vacuum from crontab. I do it manually now.

--
Sincerely Yours,
Denis Perchine

----------------------------------
E-Mail: dyp(at)perchine(dot)com
HomePage: http://www.perchine.com/dyp/
FidoNet: 2:5000/120.5
----------------------------------

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Brett W. McCoy 2000-12-19 13:13:03 Re: a "huge" table with small rows and culumns
Previous Message Brett W. McCoy 2000-12-19 12:27:16 Re: a "huge" table with small rows and culumns