Re: Read data from WAL

From: Baldur Þór Emilsson <baldur(at)baldur(dot)biz>
To: Peter Geoghegan <peter(dot)geoghegan86(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Read data from WAL
Date: 2013-07-15 13:34:01
Message-ID: CAMqGZ2y=k0P_ePEwiEbc+ynQEF4ivk4OeGMXMwi-3vO0ZkZzVQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thank you all for your responses. I'm aware of xlogdump but I'm afraid it
does not help me with readign the data in the WAL. It is mainly "for
debugging or educational purposes" (citing the docs) and it outputs a lot
of information about the WAL records but not the contents of them (e.g. it
says where an INSERT wrote the data, but not what the data is). Please
correct me if I'm mistaken.

What I'm looking for is a way to read the data that is inserted into the
database. I was hoping there was some known way of doing that to save me
the time it takes to patch Postgres to do that.

Regards,
Baldur

On 15 July 2013 12:59, Peter Geoghegan <peter(dot)geoghegan86(at)gmail(dot)com> wrote:

> On Mon, Jul 15, 2013 at 1:45 PM, Baldur Þór Emilsson <baldur(at)baldur(dot)biz>
> wrote:
> > Are there any projects or standard procedures for reading the data from
> the
> > WAL to get a change log for the database (or without the WAL, using some
> > other method)? I have searched for information about this quite
> thoroughly
> > without luck, so I thought I'd try asking here before I started to patch
> > Postgres :)
>
> I think that pg_xlogdump is what you're looking for:
>
> http://www.postgresql.org/docs/9.3/static/pgxlogdump.html
>
> It only became available with Postgres 9.3. On prior versions, you can use:
>
> https://github.com/snaga/xlogdump
>
> --
> Regards,
> Peter Geoghegan
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message guxiaobo1982 2013-07-15 13:37:13 Reply: Can we specify transaction level when connectting toexternal postgresql server via postgres_fdw
Previous Message Haiming Zhang 2013-07-15 13:08:41 Re: Update big table