Question about convert the binary WAL file
Question about convert the binary WAL file
От:
clipper tokyo <clippertokyo@yahoo.co.jp>
Дата:
Hi, All I am new to devolopment of code, so maybe the question is quit simple. I am trying to write a tools to convert a binary WAL file to a text file. I want to use ReadRecord to get the record from the file and use RmgrTable[record->xl_rmid].rm_desc to interpreter the content. But the problem is that both of them are local functions and I can not use them directly, should I rewrite a copy of the functions? BTW. how to use the extern definition in the header file, for my program is put into the contrib folder, and when I try to use some extern definition in the xlog.h, the compiler alway complain it can not find the objects. Thanks a lot |
Save the earth
Re: Question about convert the binary WAL file
От:
Alvaro Herrera <alvherre@alvh.no-ip.org>
Дата:
On Thu, Jul 14, 2005 at 03:31:06PM +0900, clipper tokyo wrote: > > Hi, All > > I am new to devolopment of code, so maybe the question is quit simple. > > I am trying to write a tools to convert a binary WAL file to a text file. I think you could start by looking at Tom Lane's xlogdump. It's incomplete but it is a good start. Search the archives for a message with these headers: To: "Mohan, Ross" Cc: pgsql-admin@postgresql.org Subject: Re: [ADMIN] question about wal and point in time recovery In-reply-to: Date: Wed, 13 Apr 2005 10:26:09 -0400 Message-ID: <7043.1113402369@sss.pgh.pa.us> From: Tom Lane -- Alvaro Herrera () "Siempre hay que alimentar a los dioses, aunque la tierra esté seca" (Orual)