Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cr1oC-0004i2-Il for pgsql-admin@arkaria.postgresql.org; Thu, 23 Mar 2017 12:25:40 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cr1oC-0002Y0-5d for pgsql-admin@arkaria.postgresql.org; Thu, 23 Mar 2017 12:25:40 +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 1cr1oA-0002LA-OC for pgsql-admin@postgresql.org; Thu, 23 Mar 2017 12:25:38 +0000 Received: from mout.perfora.net ([74.208.4.194]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1cr1o7-00025Q-MD for pgsql-admin@postgresql.org; Thu, 23 Mar 2017 12:25:37 +0000 Received: from [192.168.1.101] ([98.169.212.183]) by mrelay.perfora.net (mreueus001 [74.208.5.2]) with ESMTPSA (Nemesis) id 0MREPh-1ckixA2feh-00UbbE; Thu, 23 Mar 2017 13:25:31 +0100 Message-ID: <58D3BEBF.9020701@sqlexec.com> Date: Thu, 23 Mar 2017 08:25:35 -0400 From: "michael@sqlexec.com" User-Agent: Postbox 5.0.11 (Windows/20170302) MIME-Version: 1.0 To: ramonpadilla1@yahoo.co.uk CC: "pgsql-admin@postgresql.org" Subject: Re: pg_dump ERROR: missing chunk number 0 for toast value References: <587579712.444477.1490174496291.ref@mail.yahoo.com> <587579712.444477.1490174496291@mail.yahoo.com> In-Reply-To: <587579712.444477.1490174496291@mail.yahoo.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:fQM7PfWeijIlVBebs0E9DuiHX4CBU91T2JHm00IaR8cNCUH6tfU E9PPP5tveLStNs4S6dPdZ2gUpc0E+2yaqxmouQaYPpuIp1TshYhF1XIgMd1Hby3boGUMDCv MWTHK/rI8FA/9za4nsllAvjW829W46leyL1Wrzo0mnKxPky7u3om1OjAU6miDXT7CBBmeXk VIAmSKAsAzI952f+XwLGw== X-UI-Out-Filterresults: notjunk:1;V01:K0:YpYMbkU3E7Q=:WgHK8AAUylgwtu0Iku4PQt icWcNf9JY8g/MjSFIsI8+qZQUWC5x7vaTgpJoF3GKXJTPuZnsuwayOdK/0I55vu88/QFocvOF HrRtTmSggDUns+gfgkZUu8JiCJYgSatva2eeLpdTGvfwB6UC4DTypZFIQidN/KDqbWPhVx2VT jJuENvgdIO1laPDZbH8Wwl41yDweh6cSBO3Ps/F0LPysjNNcLDxqRQTpF6eumOXJeuqUF5kjG gSNtBVhfsCLY+xHtOBWWBLVg/RxKG8q4VgCWs80lynZa532qckmqNWu4A9LAyirSk4GtUnqEJ xaH6yDk2oTvGNzsaHjhzt1iBbApEr8N9WsrevZd01sR+US9jtrwKG/+uM1WN0w8fiBWeZt1FC WKWpNg2GhOsncAKbhKM9lTkPOyPdgPVNrzY9gryZFkIk84mM/2wUjhmMswKZ/6oMl8GtVGhlq RJBrYWZ9SUuOsutn44C4syUXoxFDDz8ZgSK3+1qqWNZ1B877PP5UjMbK77bHB0Ha1K0aqCzXc /sX5CPBZBmrW0lhUKuaEmefcUiIWJmhdfQg3nmDMIg8fJHlGLSjxrgcNk7DvFVm9kZXfQti/p OqMSaiObv+cFjm7ROPYDXBJYeFpMmhL+m6HJVDTG1eCT/IaMA2ekvZSaKxblxgDEx4wVs+tHM 4oLTY5mMz6fY0UoHG4hM9eP7l8NctfvWILF/yod1tToxW2ZOA3WBiQHYSQlNVvefeGq76zuN5 7F1mhKU0ZWlHGHsr X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org As a start, zero in on the relation, index,column, table: select 36791::regclass; Restart the server with: zero_damaged_pages=true ignore_system_indexes=true Do full vacuum again: VACUUM FULL VERBOSE public.bodycontent; If still a problem, consider dropping all the indexes and recreate them. Then try to do the vacuum full again. If you still have a problem: Use a program like python/psycopg2 and write a loop that fetches every row in the table and capture with exception the rows that it fails on. Then delete those rows. Then do a dump of the table to /dev/null and see if it completes without errors. If so, you will need to dump and recreate the table. Regards, Michael Vitale ramonpadilla1@yahoo.co.uk wrote: > missing chunk -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin