pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mendola Gaetano <mendola@bigfoot.com>
To: pgsql-admin@postgresql.org
Subject: Re: Syncing DBs prior to RServ replication
Date: Tue, 10 Jun 2003 11:12:23 +0200
Message-ID: <005101c32f30$675b05a0$152aa8c0@GMENDOLA2> (raw)
References: <200306091524.32045.mike@nachbaur.com>

"Michael A Nachbaur" <mike@nachbaur.com> wrote:
> I'm looking at syncronizing two database servers with RServ (production /
"hot
> standby"), and I'm trying to figure out a way to get the initial database
on
> the slave server syncronized with the master.
>
> Normally, I would 1) turn off all clients, 2) dump the database from the
> master, 3) restore it into the slave, 4) turn clients back on, and 5)
> replicate regularly.
>
> Unfortunately I'm running the master in a production environment where
> anything more than 5 minutes of downtime is a really "Bad ThingĀ®".  The
> database dump is about 5G, and so leaving the master down for that entire
> time isn't possible.  Is there a recommended way for performing such a
"sync"
> without any lengthy downtime?
>
> I'm guessing I could start my dump, and then immediately afterward create
the
> replication tables in the master.  Since the dump is transactional (is
it?),
> it shouldn't include the replication tables or the replication "snapshot"
> information in it's dump, and by the time I finally finish importing the
dump
> in the new server, I should be able to perform the replication and pick up
> all the new / changed records since I started the DB dump.
>
> Will this work?  Is there a better recommended way?  Thanks.

I think you can completely solve your problem with 7.4 that should
have the "point-in-time recovery"

Regards
Gaetano Mendola







view thread (5+ messages)  latest in thread

Message-ID: <005101c32f30$675b05a0$152aa8c0@GMENDOLA2>
Permalink:  ../005101c32f30$675b05a0$152aa8c0@GMENDOLA2/
Also on:    postgresql.org/message-id/005101c32f30$675b05a0$152aa8c0@GMENDOLA2

 · 

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: mendola@bigfoot.com
  Subject: Re: Syncing DBs prior to RServ replication
  In-Reply-To: <005101c32f30$675b05a0$152aa8c0@GMENDOLA2>
  References: <200306091524.32045.mike@nachbaur.com> <005101c32f30$675b05a0$152aa8c0@GMENDOLA2>

* 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