Re: detection of VACUUM in progress

From: Patrick(dot)FICHE(at)AQSACOM(dot)COM
To: bohdan(dot)linda(at)seznam(dot)cz
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: detection of VACUUM in progress
Date: 2005-08-31 12:24:52
Message-ID: 1DC6C8C88D09D51181A40002A5286929B236B2@intranet
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Your table size should stabilize to the size you currently get before VACUUM
FULL....
If you're afraid about having too many "deleted" rows, you just have to run
VACUUM more often...

I think that you have to test how often you have to run VACUUM so that your
performance is not impacted....
Or perhaps you could try pg_autovacuum which will run VACUUM for you based
on statistics...

Regards,
Patrick

----------------------------------------------------------------------------
---------------
Patrick Fiche
email : patrick(dot)fiche(at)aqsacom(dot)com
tel : 01 69 29 36 18
----------------------------------------------------------------------------
---------------

-----Original Message-----
From: pgsql-general-owner(at)postgresql(dot)org
[mailto:pgsql-general-owner(at)postgresql(dot)org]On Behalf Of Bohdan Linda
Sent: mercredi 31 aout 2005 14:19
To: Ben-Nes Yonatan
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: [GENERAL] detection of VACUUM in progress

>
> From the postgresql manual
> http://www.postgresql.org/docs/8.0/interactive/maintenance.html :
> " The standard form of VACUUM is best used with the goal of maintaining
> a fairly level steady-state usage of disk space. If you need to return
> disk space to the operating system you can use VACUUM FULL ? but what's
> the point of releasing disk space that will only have to be allocated
> again soon? Moderately frequent standard VACUUM runs are a better
> approach than infrequent VACUUM FULL runs for maintaining
> heavily-updated tables."
>
> From this I conclude that an ordinary VACUUM is sufficent to your
> purpose cause you insert/delete almost the same amount of data daily.
>
> But then again I can be mistaken so if anyone can back me up here or
> throw the manual on me will be nice ;P

If I vacuum only the table, the records may be used by new lines, that is
fine. Problem is, that when creating select on such table, it takes more
pages to be read from the IO (it will read laso deleted rows) thus the
select will last a bit longer.

regards,
Bohdan

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Browse pgsql-general by date

  From Date Subject
Next Message Tino Wildenhain 2005-08-31 12:47:18 Re: How do I copy part of table from db1 to db2 (and
Previous Message Bohdan Linda 2005-08-31 12:18:47 Re: detection of VACUUM in progress