pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Eugene M. Zheganin <emz@norma.perm.ru>
To: pgsql-admin@postgresql.org
Subject: Full vacuuming of BIG tables takes too long
Date: Thu, 22 May 2003 10:39:56 +0600
Message-ID: <54953117843.20030522103956@norma.perm.ru> (raw)

Hi, all.

  Just example. I have an table in ISP billing base, which every 2
  months grows and contains up to 35,000,000 of records. That takes
  13Gb of disk space. On that amount 'vacuum analyze' (every night) is
  inefficient, cause after it the table continues to grow (but not
  very fast).

  When trying to do 'vacuum full' it takes too long- I can wait only
  5-6 hours (and that is not enough), cause it locks the table and
  the number of procecces, awaiting their inserts becomes too high.
  So it is much faster (40-50 mins) to dump the entire database,
  then drop it, recreate and resore it.

  I know that 'vacuum_mem = 65536' is not enough to do 'vacuum full'
  fast enough - but I wanna ask- if I dedcide to increase that number
  - will be 512 megs for example be better ?

  Is there any other init parameters that can helkp me ?
  
  Or speaking of such amount of data dump/recreate/restore will be the
  best way ?


WBR, Eugene.




view thread (7+ messages)  latest in thread

Message-ID: <54953117843.20030522103956@norma.perm.ru>
Permalink:  ../54953117843.20030522103956@norma.perm.ru/
Also on:    postgresql.org/message-id/54953117843.20030522103956@norma.perm.ru

 · 

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-admin@postgresql.org
  Cc: emz@norma.perm.ru
  Subject: Re: Full vacuuming of BIG tables takes too long
  In-Reply-To: <54953117843.20030522103956@norma.perm.ru>
  References: <54953117843.20030522103956@norma.perm.ru>

* 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