Unix Technical Forum

Getting UPDATEs/INSERTs/DELETEs from transaction log?

This is a discussion on Getting UPDATEs/INSERTs/DELETEs from transaction log? within the pgsql Admins forums, part of the PostgreSQL category; --> I'm doing backup on a second, spare server, by backing up WAL files. I'm using that server for analysis ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Admins

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 06:12 AM
Mario Splivalo
 
Posts: n/a
Default Getting UPDATEs/INSERTs/DELETEs from transaction log?

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?

Mike


---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 06:12 AM
Jim C. Nasby
 
Posts: n/a
Default Re: Getting UPDATEs/INSERTs/DELETEs from transaction log?

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

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:43 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com