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

Поиск
Список
Период
Сортировка
От Jim C. Nasby
Тема Re: Getting UPDATEs/INSERTs/DELETEs from transaction log?
Дата
Msg-id 20060523211619.GZ64371@pervasive.com
обсуждение исходный текст
Ответ на Getting UPDATEs/INSERTs/DELETEs from transaction log?  (Mario Splivalo <mario.splivalo@mobart.hr>)
Список 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

В списке pgsql-admin по дате отправления:

Предыдущее
От: "Shoaib Mir"
Дата:
Сообщение: Re: Re : Re: Authentication troubleshooting using psql
Следующее
От: "Hakan Kocaman"
Дата:
Сообщение: Re: defining Your own sort order for already compiled PostgreSQL (because PSQL sort orders are incopatible with ASCII sort order for non -alpha characters)