Re: Getting transaction details from the WAL?

From: Christophe Pettus <xof(at)thebuild(dot)com>
To: Bo Guo <bo(dot)guo(at)gisticinc(dot)com>
Cc: pgsql-sql(at)lists(dot)postgresql(dot)org
Subject: Re: Getting transaction details from the WAL?
Date: 2021-05-23 02:03:25
Message-ID: 72F6C54D-3787-4016-B765-45672851FD72@thebuild.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

> On May 22, 2021, at 19:00, Bo Guo <bo(dot)guo(at)gisticinc(dot)com> wrote:
>
> I am wondering if it is possible to get content changes to a particular table from a point-in-time by exploring the WAL or any other artifacts relating to transaction management.

Perhaps the easiest way to do this is to use logical decoding, which you can use to capture changes from the WAL, converting them to other formats. While it forms the basis of logical replication, there are other plug-ins to the framework. You might look at wal2json:

https://github.com/eulerto/wal2json

or the test plugin in contrib/

https://www.postgresql.org/docs/current/test-decoding.html

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Bo Guo 2021-05-23 02:36:52 Re: Getting transaction details from the WAL?
Previous Message Bo Guo 2021-05-23 02:00:27 Getting transaction details from the WAL?