pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedGetting UPDATEs/INSERTs/DELETEs from transaction log?
2+ messages / 2 participants
[nested] [flat]
* Getting UPDATEs/INSERTs/DELETEs from transaction log?
@ 2006-05-23 15:47 Mario Splivalo <mario.splivalo@mobart.hr>
2006-05-23 21:16 ` Re: Getting UPDATEs/INSERTs/DELETEs from transaction log? Jim C. Nasby <jnasby@pervasive.com>
0 siblings, 1 reply; 2+ messages in thread
From: Mario Splivalo @ 2006-05-23 15:47 UTC (permalink / raw)
To: pgsql-admin
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
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Getting UPDATEs/INSERTs/DELETEs from transaction log?
2006-05-23 15:47 Getting UPDATEs/INSERTs/DELETEs from transaction log? Mario Splivalo <mario.splivalo@mobart.hr>
@ 2006-05-23 21:16 ` Jim C. Nasby <jnasby@pervasive.com>
0 siblings, 0 replies; 2+ messages in thread
From: Jim C. Nasby @ 2006-05-23 21:16 UTC (permalink / raw)
To: Mario Splivalo <mario.splivalo@mobart.hr>; +Cc: 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@pervasive.com
Pervasive Software http://pervasive.com work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2006-05-23 21:16 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-05-23 15:47 Getting UPDATEs/INSERTs/DELETEs from transaction log? Mario Splivalo <mario.splivalo@mobart.hr>
2006-05-23 21:16 ` Jim C. Nasby <jnasby@pervasive.com>
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