Обсуждение: Question about convert the binary WAL file
<table width="100%"><tr><td><p>Hi, All<p>I am new to devolopment of code, so maybe the question is quit simple.<p>I am tryingto write a tools to convert a binary WAL file to a text file.<p>I want to use ReadRecord to get the record from thefile and use RmgrTable[record->xl_rmid].rm_desc to interpreter the content. But the problem is that both of them arelocal functions and I can not use them directly, should I rewrite a copy of the functions?<p>BTW. how to use the externdefinition in the header file, for my program is put into the contrib folder, and when I try to use some extern definitionin the xlog.h, the compiler alway complain it can not find the objects.<p>Thanks a lot<br /> Clipper</td></tr></table><p><p><p><br/><hr size="1" /><a href="http://pr.mail.yahoo.co.jp/ondanka/" target="_blank">Savethe earth</a>
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" <RMohan@arbinet.com> Cc: pgsql-admin@postgresql.org Subject: Re: [ADMIN] question about wal and point in time recovery In-reply-to: <CC74E7E10A8A054798B6611BD1FEF4D307966B32@vamail01.thexchange.com> Date: Wed, 13 Apr 2005 10:26:09 -0400 Message-ID: <7043.1113402369@sss.pgh.pa.us> From: Tom Lane <tgl@sss.pgh.pa.us> -- Alvaro Herrera (<alvherre[a]alvh.no-ip.org>) "Siempre hay que alimentar a los dioses, aunque la tierra esté seca" (Orual)