Re: Interpreting content of wal

From: Craig Ringer <craig(at)postnewspapers(dot)com(dot)au>
To: xarli(at)xarli(dot)net
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Interpreting content of wal
Date: 2009-10-23 13:13:56
Message-ID: 4AE1AC14.1030207@postnewspapers.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Charles-Antoine Guillat-Guignard wrote:
> Hi list,
>
> I need to recover the content of WAL files, in order to see what
> happened to a database, so I am trying to translate it from binary to
> human-readable log. My goal is to be able to read the modifications that
> were made to my database (the same way mysqlbinlog does for MySQL).

The WAL doesn't contain a record, in a binary form or otherwise, of
anything as high-level as SQL statements. You should be able to get
information on tuple changes, but I wouldn't expect much more.

> I tried compiling xlogdump against PgSQL 8.1 and 8.2 (the WAL files are
> from a 8.1 version), which lead to the same error, with all the WAL
> files I have. I suspect an unattended file structure (version
> mismatch?), though the versions seem to match (except the architecture,
> i386 for my compiling and amd64 for the DB server).

The pgxlogviewer page suggests that 8.1 support isn't present. The code
looks mostly abandoned (last updated in 2006) so you might have some
work ahead of you :S

--
Craig Ringer

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Merlin Moncure 2009-10-23 13:40:37 Re: How to check whether a data type can be cast to another
Previous Message Craig Ringer 2009-10-23 13:05:40 Re: FATAL error could not find function "alt_to_mic" in file cyrillic_and_mic.so