Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bFyHa-0001ue-Hh for pgsql-general@arkaria.postgresql.org; Thu, 23 Jun 2016 06:38:34 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bFyHa-0006kt-3x for pgsql-general@arkaria.postgresql.org; Thu, 23 Jun 2016 06:38:34 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bFyHY-0006kd-AD for pgsql-general@postgresql.org; Thu, 23 Jun 2016 06:38:32 +0000 Received: from mbob.nabble.com ([162.253.133.15]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bFyHU-0004tq-U2 for pgsql-general@postgresql.org; Thu, 23 Jun 2016 06:38:31 +0000 Received: from msam.nabble.com (unknown [162.253.133.85]) by mbob.nabble.com (Postfix) with ESMTP id 835762AF67CC for ; Wed, 22 Jun 2016 23:17:58 -0700 (PDT) Date: Wed, 22 Jun 2016 23:38:25 -0700 (MST) From: sudalai To: pgsql-general@postgresql.org Message-ID: <1466663905344-5909194.post@n5.nabble.com> Subject: ERROR: missing chunk number 0 for toast value while using logical decoder.\ MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -0.1 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org 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 select * from pg_class where relname like 'pg_toast_782254'; -[ RECORD 1 ]-------+---------------- relname | pg_toast_782254 relnamespace | 99 reltype | 782273 reloftype | 0 relowner | 10 relam | 0 relfilenode | 782272 reltablespace | 0 relpages | 464 reltuples | 2066 relallvisible | 464 reltoastrelid | 0 relhasindex | t relisshared | f relpersistence | p relkind | t relnatts | 3 relchecks | 0 relhasoids | f relhaspkey | t relhasrules | f relhastriggers | f relhassubclass | f relrowsecurity | f relforcerowsecurity | f relispopulated | t relreplident | n relfrozenxid | 1982173 relminmxid | 1 relacl | reloptions | Thanks In Advance. ----- sudalai -- View this message in context: http://postgresql.nabble.com/ERROR-missing-chunk-number-0-for-toast-value-while-using-logical-decoder-tp5909194.html Sent from the PostgreSQL - general mailing list archive at Nabble.com. -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general