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 39102312761 for ; Tue, 10 Jun 2003 05:07:40 +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 26699-07 for ; Tue, 10 Jun 2003 02:07:29 -0300 (ADT) Received: from dbdevel.sunwave.net (h64-141-16-15.sunwave.net [64.141.16.15]) by svr1.postgresql.org (Postfix) with ESMTP id BBE7731161F for ; Mon, 9 Jun 2003 22:24:32 +0000 (GMT) Received: from localhost (localhost.localdomain [127.0.0.1]) by dbdevel.sunwave.net (Postfix) with ESMTP id 2E109178008 for ; Mon, 9 Jun 2003 18:24:32 -0400 (EDT) From: Michael A Nachbaur To: pgsql-admin@postgresql.org Subject: Syncing DBs prior to RServ replication Date: Mon, 9 Jun 2003 15:24:32 -0700 User-Agent: KMail/1.5 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200306091524.32045.mike@nachbaur.com> X-Archive-Number: 200306/91 X-Sequence-Number: 9082 I'm looking at syncronizing two database servers with RServ (production / "= hot=20 standby"), and I'm trying to figure out a way to get the initial database o= n=20 the slave server syncronized with the master. Normally, I would 1) turn off all clients, 2) dump the database from the=20 master, 3) restore it into the slave, 4) turn clients back on, and 5)=20 replicate regularly. Unfortunately I'm running the master in a production environment where=20 anything more than 5 minutes of downtime is a really "Bad Thing=AE". The= =20 database dump is about 5G, and so leaving the master down for that entire= =20 time isn't possible. Is there a recommended way for performing such a "syn= c"=20 without any lengthy downtime? I'm guessing I could start my dump, and then immediately afterward create t= he=20 replication tables in the master. Since the dump is transactional (is it?)= ,=20 it shouldn't include the replication tables or the replication "snapshot"= =20 information in it's dump, and by the time I finally finish importing the du= mp=20 in the new server, I should be able to perform the replication and pick up= =20 all the new / changed records since I started the DB dump. Will this work? Is there a better recommended way? Thanks. --=20 Michael A Nachbaur