Re: Getting the value of the old_tuple using the test_decoding extension and BDR

From: Sylvain MARECHAL <marechal(dot)sylvain2(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Getting the value of the old_tuple using the test_decoding extension and BDR
Date: 2015-07-02 16:14:00
Message-ID: CAJu=pHQGUxHnB8E9SjSMJbDeWbQ3K+SKq5QtcriswcFZVzLjiw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

2015-07-02 16:11 GMT+02:00 Sylvain MARECHAL <marechal(dot)sylvain2(at)gmail(dot)com>:

> Hello all,
>
> [...]
>
> What I can see is that new values are present, and also old key when the
> modification concerns the primary key. But the other old values do not seem
> to be accessible.
>
> Is it a limitation of the test_decoding plugin, or old values are simply
> not available?
>

I guess I simply should use the REPLICA IDENTITY (
http://www.postgresql.org/docs/9.4/static/sql-altertable.html)

<<<
ALTER TABLE
[...]
REPLICA IDENTITY
[...]
FULL records the old values of all columns in the row.
>>>

Sylvain

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Joseph Kregloh 2015-07-02 16:47:46 Re: Running PostgreSQL with ZFS ZIL
Previous Message Vick Khera 2015-07-02 15:50:00 Re: Running PostgreSQL with ZFS ZIL