How to read a value when it is VARATT EXTERNAL ONDISK from logical replication decoder

From: Adam Dratwiński <adam(dot)dratwinski(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: How to read a value when it is VARATT EXTERNAL ONDISK from logical replication decoder
Date: 2017-02-20 10:44:58
Message-ID: CAKg6ypKcxWmMNT3VZ8WH5TjhJNfD_+dUebBAc_CG-nFTgg_SfQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello everyone,

I am writing a custom logical replication decoder, and I took test decoder
from Postgres sources as an example.

Could anyone tell me how to read "unchanged toast datum" in case it is
VARTT_IS_EXTERNAL_ONDISK.

In the test decoder it is ignored:

https://github.com/postgres/postgres/blob/master/contrib/test_decoding/test_decoding.c#L377

Cheers
Adam

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Petr Jelinek 2017-02-20 10:58:12 Re: Replication vs. float timestamps is a disaster
Previous Message Rushabh Lathia 2017-02-20 10:34:29 Re: wait events for disk I/O