pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Iain <iain@mst.co.jp>
To: Michael Ryan S. Puncia <mpuncia@census.gov.ph>
To: pgsql-performance@postgresql.org
Subject: Re: VACCUM FULL ANALYZE PROBLEM
Date: Tue, 15 Feb 2005 11:31:14 +0900
Message-ID: <009201c51306$6e9ece80$7201a8c0@mst1x5r347kymb> (raw)
References: <200502150202.j1F22flW029903@mail.census.gov.ph>

>> But I need to do full vacuum because I deleted some of the fields that 
>> are not use anymore and I also add another fields. Is there

>> another  way  to speed up full vacuum?



Hmmm... a full vacuum may help to re-organize the structure of modified 
tables, but whether this is significant or not is another matter. I don't 
know enough of the internals to comment on that maybe someone else who knows 
more can.



The obvious thing is the vacuum memory setting (in postgresql.conf). 
Presumably, you could set this quite high at least just for the duration of 
the vacuum anyway.



Would the total time be reduced by dropping the indexes, then vacuuming and 
rebuilding the indexes? I havn't tried anything like this so I can't say.



You should probably say what version of the db you are using and describe 
your system a little.



Regards

Iain

----- Original Message ----- 

  From: Michael Ryan S. Puncia
  To: 'Iain' ; pgsql-performance@postgresql.org
  Sent: Tuesday, February 15, 2005 11:10 AM
  Subject: RE: [PERFORM] VACCUM FULL ANALYZE PROBLEM




  But I need to do full vacuum because I deleted some of the fields that are 
not use anymore and I also add another fields. Is there

  another  way  to speed up full vacuum?






------------------------------------------------------------------------------

  From: Iain [mailto:iain@mst.co.jp]
  Sent: Tuesday, February 15, 2005 9:52 AM
  To: Michael Ryan S. Puncia; pgsql-performance@postgresql.org
  Subject: Re: [PERFORM] VACCUM FULL ANALYZE PROBLEM



  Hi,



  just make sure that your freespace map is big enough and then do a vacuum 
analyse without the full option.



  I can imagine that database performance might not be as good as it would 
be after a vacuum full, though I expect that it wouldn't make much 
difference.



  regards

  Iain

    ----- Original Message ----- 

    From: Michael Ryan S. Puncia

    To: pgsql-performance@postgresql.org

    Sent: Tuesday, February 15, 2005 10:34 AM

    Subject: [PERFORM] VACCUM FULL ANALYZE PROBLEM



    Hi,



    I have 3 tables in the database with 80G of data, one of them is almost 
40G and the remaining 2 tables has 20G each.

    We use this database mainly for query and updating is done only 
quarterly and the database perform well. My problem

    is after updating and then run VACCUM FULL ANALYZE  vacuuming the tables 
takes days to complete. I hope someone

    can help me solve my problem.



    Thanks







  __________ NOD32 1.998 (20050212) Information __________

  This message was checked by NOD32 Antivirus System.
  http://www.nod32.com

view thread (8+ messages)  latest in thread

Message-ID: <009201c51306$6e9ece80$7201a8c0@mst1x5r347kymb>
Permalink:  ../009201c51306$6e9ece80$7201a8c0@mst1x5r347kymb/
Also on:    postgresql.org/message-id/009201c51306$6e9ece80$7201a8c0@mst1x5r347kymb

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: iain@mst.co.jp, mpuncia@census.gov.ph
  Subject: Re: VACCUM FULL ANALYZE PROBLEM
  In-Reply-To: <009201c51306$6e9ece80$7201a8c0@mst1x5r347kymb>
  References: <200502150202.j1F22flW029903@mail.census.gov.ph> <009201c51306$6e9ece80$7201a8c0@mst1x5r347kymb>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox