X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 7EA06D9947 for ; Tue, 27 Sep 2005 14:45:46 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 60441-09 for ; Tue, 27 Sep 2005 17:45:39 +0000 (GMT) Received: from mail.dialmex.net (67.107.77.98.ptr.us.xo.net [67.107.77.98]) by svr1.postgresql.org (Postfix) with ESMTP id 38052D777B for ; Tue, 27 Sep 2005 14:45:38 -0300 (ADT) Received: from david.dialmex.net (dmxnocws13.dialmex.net [67.107.77.78]) by mail.dialmex.net (Postfix) with ESMTP id A5D5BEE98E; Tue, 27 Sep 2005 12:45:38 -0500 (CDT) Subject: Re: Synchronize Postgres with an other database From: David Stanaway To: hue Cc: pgsql-interfaces@postgresql.org In-Reply-To: <001401c5c2b2$be48daa0$51c809c0@HUEROBERT> References: <001401c5c2b2$be48daa0$51c809c0@HUEROBERT> Content-Type: text/plain Date: Tue, 27 Sep 2005 12:45:38 -0500 Message-Id: <1127843138.23735.4.camel@dmxnocws13.dialmex.net> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.05 required=5 tests=[FORGED_RCVD_HELO=0.05] X-Spam-Level: X-Archive-Number: 200509/39 X-Sequence-Number: 5762 How many changes per minute are you planning for? Looking to the WAL files seems very low level, and I don't imagine it would be a good idea unless performance dictated it. Have you thought of setting up a trigger to log inserts/updates/deletes into a transaction table/tables that you can poll with a java application or whatever other language you want? On Mon, 2005-09-26 at 17:55 +0200, hue wrote: > Hi, > > > > I would like to read Postgres transaction log files to update an other > database with an old structure base on files. > > > > The only solution I found is to read WAL files, but, the only way is > with c program, I did not find a way to use WAL files with java > program. > > > > Regards, Olivier. > > > > > >