Re: 7.3.1 takes long time to vacuum table?

From: "Shridhar Daithankar" <shridhar_daithankar(at)persistent(dot)co(dot)in>
To: PostgreSQL General <pgsql-general(at)postgresql(dot)org>
Subject: Re: 7.3.1 takes long time to vacuum table?
Date: 2003-02-21 08:39:27
Message-ID: 3E563317.26557.437378A@localhost
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 20 Feb 2003 at 11:42, Jean-Luc Lachance wrote:

> Well, here is another case where partitioning would be usefull.

Not really. But point is well understood.

> Lets all agree the that vaccuming a small table should be better done by
> copying to a new one.
> Now, if a larger table would be partitioned, it would allow vacuuming
> one partition at a time.

postgresql splits data files at 1 GB. If DBA assures postgresql that there is
at least 1 gig of free space on data directory, vacuum full can use these data
files as partition and compact the space pretty quickly.

I think adding a flag to vacuum full to effect of use temporary table space for
compaction aggresively, I think it should be possible to implement this pretty
quickly.

On the other hand, I think partitioining table should be pretty easy since the
logic for splitting things across files is already there. Only if we add logic
to splitting file location as well.

Bye
Shridhar

--
Air Force Inertia Axiom: Consistency is always easier to defend than
correctness.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Oleg Samoylov 2003-02-21 08:44:39 Re: sync other database using C function
Previous Message Oleg Samoylov 2003-02-21 08:36:14 Re: system catalog