Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cyH7Y-00027o-Rb for pgsql-bugs@arkaria.postgresql.org; Wed, 12 Apr 2017 12:11:36 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cyH7Y-00007X-8N for pgsql-bugs@arkaria.postgresql.org; Wed, 12 Apr 2017 12:11:36 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cyH7X-000070-Fi for pgsql-bugs@postgresql.org; Wed, 12 Apr 2017 12:11:35 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cyH7U-0003jP-Ta for pgsql-bugs@postgresql.org; Wed, 12 Apr 2017 12:11:34 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v3CCBSUl008692; Wed, 12 Apr 2017 08:11:28 -0400 From: Tom Lane To: lara.schembri@nyxgg.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #14621: ERROR: compressed data is corrupt In-reply-to: <20170412073107.25947.15117@wrigleys.postgresql.org> References: <20170412073107.25947.15117@wrigleys.postgresql.org> Comments: In-reply-to lara.schembri@nyxgg.com message dated "Wed, 12 Apr 2017 07:31:07 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <8690.1491999088.1@sss.pgh.pa.us> Date: Wed, 12 Apr 2017 08:11:28 -0400 Message-ID: <8691.1491999088@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org lara.schembri@nyxgg.com writes: > Currently I'm trying to archive an old table is not being used and during > the pg_dump the below error was given > ERROR: compressed data is corrupt > I have identified that a text coloumn of the ctid (74127541,3) was > corrupted. This was done by doing a full table scan and wait for that error. > However, I would like to know how extensive this corruption is. Is there a > way to be able to extract all the corrupted CTID's and ignore them from the > copy. > Please note i have tried the chk function > declare t text; > begin t := $1; > return false; > exception when others then return true; > end; > which did not work. You would get better responses if you defined what you meant by "did not work", but I'm going to guess that the issue is that this code failed to expose corrupted data. That's probably because it would have just assigned the bad datum to "t" without decompressing it. I'd try something that would require examination of the actual content of the string, perhaps "t := md5($1)". regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs