pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jim C. Nasby <jnasby@pervasive.com>
To: Mario Splivalo <mario.splivalo@mobart.hr>
Cc: pgsql-admin@postgresql.org
Subject: Re: Getting UPDATEs/INSERTs/DELETEs from transaction log?
Date: Tue, 23 May 2006 16:16:20 -0500
Message-ID: <20060523211619.GZ64371@pervasive.com> (raw)
In-Reply-To: <1148399251.23161.12.camel@localhost.localdomain>
References: <1148399251.23161.12.camel@localhost.localdomain>

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



view thread (2+ messages)

Message-ID: <20060523211619.GZ64371@pervasive.com>
Permalink:  ../20060523211619.GZ64371@pervasive.com/
Also on:    postgresql.org/message-id/20060523211619.GZ64371@pervasive.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: jnasby@pervasive.com, mario.splivalo@mobart.hr
  Subject: Re: Getting UPDATEs/INSERTs/DELETEs from transaction log?
  In-Reply-To: <20060523211619.GZ64371@pervasive.com>
  References: <1148399251.23161.12.camel@localhost.localdomain> <20060523211619.GZ64371@pervasive.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox