Received: from falla.videotron.net (falla.videotron.net [205.151.222.106]) by hub.org (8.9.3/8.9.3) with ESMTP id PAA84743 for ; Tue, 16 Nov 1999 15:39:09 -0500 (EST) (envelope-from rwelsh@OneStepInternet.com) Received: from laptop ([24.200.30.33]) by falla.videotron.net (Sun Internet Mail Server sims.3.5.1999.07.30.00.05.p8) with SMTP id <0FLB00A0A55DWN@falla.videotron.net> for pgsql-general@hub.org; Tue, 16 Nov 1999 15:34:26 -0500 (EST) Date: Tue, 16 Nov 1999 15:41:23 -0500 From: Richard Welsh Subject: Re: [GENERAL] Re: replication To: pgsql-general@hub.org Message-id: <008601bf3072$f2593200$6301a8c0@laptop.local> MIME-version: 1.0 X-Mailer: Microsoft Outlook Express 4.72.3110.1 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7bit X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 X-Priority: 3 Is it possible to log the transactions ( as complete statements ) on one database then process the logged transactions on the second database at intervals to keep it up to date? RDW. -----Original Message----- From: Jeff Hoffmann To: Aaron J. Seigo ; pgsql-general@hub.org Date: November 16, 1999 2:28 PM Subject: Re: [GENERAL] Re: replication >"Aaron J. Seigo" wrote: > >> this needs to be in the back end... otherwise, if you have multiple people >> performing updates on different replicated servers, how can you guarentee >> concurancy? how do you manage the differences between read-only and updateable >> replicants? (this can be done using your wrapper method, but quickly gets >> clumsy) > >yeah it can get clumsy, but fortunately updates are pretty rare in my >case (and usually only performed by one person) so i don't really worry >about those issues, but i should. the only safety issue i use is >starting a transaction for each connection, perform the action on all of >the databases, and then commit the transaction on each. it's not bad >unless one of the commits fails and the others don't, then i have to >retry the failed ones & hope it works. i don't know how to fix it if i >had to give up on one of the transactions for a mirror. again, not >perfect, but it works pretty well for me & my simpler cases. > >************ > >