Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bP326-00014w-42 for pgsql-general@arkaria.postgresql.org; Mon, 18 Jul 2016 07:32:06 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bP325-00029l-Io for pgsql-general@arkaria.postgresql.org; Mon, 18 Jul 2016 07:32:05 +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 1bP324-00029B-KX for pgsql-general@postgresql.org; Mon, 18 Jul 2016 07:32:04 +0000 Received: from mbob.nabble.com ([162.253.133.15]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bP31w-0008UJ-Fg for pgsql-general@postgresql.org; Mon, 18 Jul 2016 07:32:03 +0000 Received: from msam.nabble.com (unknown [162.253.133.85]) by mbob.nabble.com (Postfix) with ESMTP id E459A2CACC4C for ; Mon, 18 Jul 2016 00:08:43 -0700 (PDT) Date: Mon, 18 Jul 2016 00:31:53 -0700 (MST) From: sudalai To: pgsql-general@postgresql.org Message-ID: <1468827113922-5912389.post@n5.nabble.com> In-Reply-To: References: <1466663905344-5909194.post@n5.nabble.com> <1466668548595-5909207.post@n5.nabble.com> Subject: Re: 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 @micheal, Thanks for your help. It working now. But, now I'm getting deadlock, when i peek_changes or get_changes, in live system. db=#select count(*) from pg_logical_slot_peek_changes('slot',NULL,100); /* pid : 25833 */ ERROR: deadlock detected DETAIL: Process 25833 waits for ShareLock on relation 248486 of database 16385; blocked by process 18904. Process 18904 waits for RowExclusiveLock on relation 257419 of database 16385; blocked by process 25833. HINT: See server log for query details. CONTEXT: slot "slot", output plugin "rep_slot", in the change callback, associated LSN CD/EF693310 Please help me, I am using PostgreSQL 9.5.0. I don't know much in postgres internals. why does peek_changes trying to take share lock on 248486 (primary key of one table). Its postgres logical decoder takes share lock or output-plugin takes share lock ? Is there any way i can avoid it? Please help me. -Sudalai ----- sudalai -- View this message in context: http://postgresql.nabble.com/ERROR-missing-chunk-number-0-for-toast-value-while-using-logical-decoder-tp5909194p5912389.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