pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Radhika S <radhika.sambamurti@gmail.com>
To: pgsql-performance@postgresql.org
Subject: Re: Replication Syatem
Date: Mon, 28 Apr 2008 16:58:59 -0400
Message-ID: <fe27bfd40804281358o5f9fffe6x80dcbc6f63b77b18@mail.gmail.com> (raw)
In-Reply-To: <7e4ba9550804280638ie81dc23w472785c83cd38fcf@mail.gmail.com>
References: <7e4ba9550804280638ie81dc23w472785c83cd38fcf@mail.gmail.com>

On Mon, Apr 28, 2008 at 9:38 AM, Gauri Kanekar
<meetgaurikanekar@gmail.com> wrote:
> All,
>
> We have a table "table1" which get insert and updates daily in high numbers,
> bcoz of which its size is increasing and we have to vacuum it every
> alternate day. Vacuuming "table1" take almost 30min and during that time the
> site is down.

Slony is an open source replication system built for Postgres.
But the real problem is that you are doing a vaccum full every day.
This is highly invasive.
Take a look at the postgres docs on Vacuuming the db. Analyze is best
on a daily basis. If you have a lot of deletes, then try vacuum
truncate.

The postgres documentation describes the various vaccuum options and
explains the merits of each.

Hope that helps.
Radhika


-- 
It is all a matter of perspective. You choose your view by choosing
where to stand. --Larry Wall



view thread (48+ messages)  latest in thread

Message-ID: <fe27bfd40804281358o5f9fffe6x80dcbc6f63b77b18@mail.gmail.com>
Permalink:  ../fe27bfd40804281358o5f9fffe6x80dcbc6f63b77b18@mail.gmail.com/
Also on:    postgresql.org/message-id/fe27bfd40804281358o5f9fffe6x80dcbc6f63b77b18@mail.gmail.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: radhika.sambamurti@gmail.com
  Subject: Re: Replication Syatem
  In-Reply-To: <fe27bfd40804281358o5f9fffe6x80dcbc6f63b77b18@mail.gmail.com>

* 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