Re: Getting UPDATEs/INSERTs/DELETEs from transaction log?

From: "Jim C(dot) Nasby" <jnasby(at)pervasive(dot)com>
To: Mario Splivalo <mario(dot)splivalo(at)mobart(dot)hr>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Getting UPDATEs/INSERTs/DELETEs from transaction log?
Date: 2006-05-23 21:16:20
Message-ID: 20060523211619.GZ64371@pervasive.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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(at)pervasive(dot)com
Pervasive Software http://pervasive.com work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Hakan Kocaman 2006-05-24 05:45:23 Re: defining Your own sort order for already compiled PostgreSQL (because PSQL sort orders are incopatible with ASCII sort order for non -alpha characters)
Previous Message Shoaib Mir 2006-05-23 20:30:34 Re: Re : Re: Authentication troubleshooting using psql