X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 2C62E9FA279 for ; Tue, 23 May 2006 18:16:36 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 47747-03 for ; Tue, 23 May 2006 18:16:24 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from noel.decibel.org (noel.decibel.org [67.100.216.10]) by postgresql.org (Postfix) with ESMTP id 4538E9FA169 for ; Tue, 23 May 2006 18:16:23 -0300 (ADT) Received: by noel.decibel.org (Postfix, from userid 1001) id 41A6A5643D; Tue, 23 May 2006 16:16:21 -0500 (CDT) Received: (hashcash-sendmail, from uid 1001); Tue, 23 May 2006 16:16:20 -0500 Date: Tue, 23 May 2006 16:16:20 -0500 From: "Jim C. Nasby" To: Mario Splivalo Cc: pgsql-admin@postgresql.org Subject: Re: Getting UPDATEs/INSERTs/DELETEs from transaction log? Message-ID: <20060523211619.GZ64371@pervasive.com> References: <1148399251.23161.12.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1148399251.23161.12.camel@localhost.localdomain> X-Operating-System: FreeBSD 6.0-RELEASE-p4 amd64 X-Distributed: Join the Effort! http://www.distributed.net User-Agent: Mutt/1.5.11 X-Hashcash: 1:20:060523:mario.splivalo@mobart.hr::XODU7RogzvQyc9Ti:0000000000000 0000000000000000000000004Q9M X-Hashcash: 1:20:060523:pgsql-admin@postgresql.org::Z9VI4qxlHn2oUNLr:00000000000 00000000000000000000000071Jo X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/332 X-Sequence-Number: 21864 On Tue, May 23, 2006 at 05:47:31PM +0200, Mario Splivalo wrote: > I'm doing backup on a second, spare server, by backing up WAL files. I'm > using that server for analysis queries and reporting. Every 15 minutes I > need to shut down that server, place in new WAL files, and restart > server. That is ok, except that I need to backup whole database cluster. > That wasnt't a problem before, but recently another database is in the > cluster, and it's also backed up, although I dont' need it there. > > Is there a way (even if it means a hard way?) to somehow extract DML > (except SELECTs, of course, but those aren't ih the log files, right?) > from the WALs, so I can 'replay' it where ever I find it useful? No, because the WAL files don't actually contain any of that information. They only record changes at a page/block level, and care not what commands actually made the changes. Slony might do what you're looking for... -- Jim C. Nasby, Sr. Engineering Consultant jnasby@pervasive.com Pervasive Software http://pervasive.com work: 512-231-6117 vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461