Re: ERROR: missing chunk number 0 for toast value while using logical decoder.\ - Mailing list pgsql-general

From Michael Paquier
Subject Re: ERROR: missing chunk number 0 for toast value while using logical decoder.\
Date
Msg-id CAB7nPqSAKEtTsME_d+eMh0WXWXT=k02nhy7oDrYNSmTnun=gqQ@mail.gmail.com
Whole thread Raw
In response to ERROR: missing chunk number 0 for toast value while using logical decoder.\  (sudalai <sudalait2@gmail.com>)
Responses Re: ERROR: missing chunk number 0 for toast value while using logical decoder.\
List pgsql-general
On Thu, Jun 23, 2016 at 3:38 PM, sudalai <sudalait2@gmail.com> wrote:
>
> I am using PostgresSQL 9.5.0.
> I have customized :
> https://github.com/michaelpq/pg_plugins/tree/master/decoder_raw to get
> result as json. It works fine. suddenly i getting below exception while
> consuming or peeking changes through that logical slot.
> Does postgres removed the  rows needed for that slot??
> Kindly help me to find the problem.
>
> db=# select * from pg_logical_slot_get_changes('lslot',NULL,1);
> ERROR:  missing chunk number 0 for toast value 857563 in pg_toast_782254
> CONTEXT:  slot "lslot", output plugin "rep_slot", in the change callback,
> associated LSN 2E/3C26D6F0

A couple of failures in logical decoding have been fixed in 9.5.2 and
9.5.3 but this one is new, still you had better update... The error is
visibly coming from the code of your plugin per the context message.
Do you have an SQL sequence that allows to reproduce the problem? I
recall playing with a couple of data types with my own plugin but I
never noticed that.
--
Michael


pgsql-general by date:

Previous
From: sudalai
Date:
Subject: Re: ERROR: missing chunk number 0 for toast value while using logical decoder.\
Next
From: sudalai
Date:
Subject: Re: ERROR: missing chunk number 0 for toast value while using logical decoder.\