X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id BB3B430F2AE for ; Tue, 10 Jun 2003 09:17:54 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 63414-08 for ; Tue, 10 Jun 2003 06:17:44 -0300 (ADT) Received: from pns.mm.eutelsat.org (pns.mm.eutelsat.org [194.214.173.227]) by svr1.postgresql.org (Postfix) with ESMTP id D798E30F01F for ; Tue, 10 Jun 2003 06:12:14 -0300 (ADT) Received: from nts-03.mm.eutelsat.org (localhost [127.0.0.1]) by pns.mm.eutelsat.org (8.11.6/linuxconf) with ESMTP id h5A8D5j25820 for ; Tue, 10 Jun 2003 10:13:06 +0200 Received: from GMENDOLA2 (gmendola2.mm.eutelsat.org [194.214.173.26]) by nts-03.mm.eutelsat.org (8.11.6/linuxconf) with SMTP id h5A9C1R28381 for ; Tue, 10 Jun 2003 11:12:01 +0200 Message-ID: <005101c32f30$675b05a0$152aa8c0@GMENDOLA2> From: "Mendola Gaetano" To: References: <200306091524.32045.mike@nachbaur.com> Subject: Re: Syncing DBs prior to RServ replication Date: Tue, 10 Jun 2003 11:12:23 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Archive-Number: 200306/94 X-Sequence-Number: 9085 "Michael A Nachbaur" 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