Re: ERROR: missing chunk number 0 for toast value while using logical decoder.\

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: sudalai <sudalait2(at)gmail(dot)com>
Cc: PostgreSQL mailing lists <pgsql-general(at)postgresql(dot)org>
Subject: Re: ERROR: missing chunk number 0 for toast value while using logical decoder.\
Date: 2016-06-23 07:20:21
Message-ID: CAB7nPqSAKEtTsME_d+eMh0WXWXT=k02nhy7oDrYNSmTnun=gqQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Jun 23, 2016 at 3:38 PM, sudalai <sudalait2(at)gmail(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message sudalai 2016-06-23 07:20:22 Re: ERROR: missing chunk number 0 for toast value while using logical decoder.\
Previous Message John R Pierce 2016-06-23 06:53:15 Re: ERROR: missing chunk number 0 for toast value while using logical decoder.\