Re: reading WAL files in python - Mailing list pgsql-sql

From C." Bergström
Subject Re: reading WAL files in python
Date
Msg-id 1199714728.11354.309.camel@chaos
Whole thread Raw
In response to reading WAL files in python  (Gerardo Herzig <gherzig@fmed.uba.ar>)
Responses Re: reading WAL files in python
List pgsql-sql
On Mon, 2008-01-07 at 10:19 -0300, Gerardo Herzig wrote:
> Hi all. Im having some fun trying to write my own replication system 
> using python. I will use the postgres own WAL archiving to write the 
> files,  then my app will read them and do some stuff. As im not a C 
> programmer, im stuck in the mission of reading the binary files.
> 
> I guess im needing to know the internals of how wals archives are, how 
> big the buffer has to be, in order to have a complete sql command.
> 
> Can someone point some advice?
> I was trying to understad src/backend/access/transam/xlog.c, but seems 
> too difficult to me :(
> 

imho you can save yourself a lot of time by taking a look at skytools[1]
as it may be more along the lines of what you're trying to accomplish
anyway.

Cheers,

./C

[1] https://developer.skype.com/SkypeGarage/DbProjects/SkyTools



pgsql-sql by date:

Previous
From: Gerardo Herzig
Date:
Subject: reading WAL files in python
Next
From: Gerardo Herzig
Date:
Subject: Re: reading WAL files in python