Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cqcSi-0003u0-7C for pgsql-admin@arkaria.postgresql.org; Wed, 22 Mar 2017 09:21:48 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cqcSh-0001iU-E8 for pgsql-admin@arkaria.postgresql.org; Wed, 22 Mar 2017 09:21:47 +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 1cqcSg-0001hx-Fs for pgsql-admin@postgresql.org; Wed, 22 Mar 2017 09:21:46 +0000 Received: from nm2.bullet.mail.ir2.yahoo.com ([212.82.96.43]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cqcSc-0003tJ-0M for pgsql-admin@postgresql.org; Wed, 22 Mar 2017 09:21:44 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1490174499; bh=NY8ACy3UKEbmIwZyX0nIcDiijiGtbpWNNFNTC2rY94Q=; h=Date:From:Reply-To:To:Subject:References:From:Subject; b=lNQ0sa5di4lda3XOzBabaNZ3fVeAp1tWrFtnmqBNk6wTOki/Bcufr1z0EhfSQyIkrrMh5PhBz4aIxsxGgUo5kF70hHa+cxWSJcTY3Y3ZiPs2E7HRkAtr82RWkenlBwXurqhXx7aXjjBG7EkyvjWtgkx62LXEZ4vrzBq5f6EArSUj5pZEQQIucritG6OTQMNnR2VbKSHjzH+zizqtrAo0I9yiDRjBFFvY8bRaP6i7jWMP/OPVW8NJieI25rTywh9d2yKrwFrjk50WDSHuRXBxt7IMaBP+PibBT53rIfJeIlkenLgN3nu7uBNpModXRdJqMTCO06xRadNOSJdqMFlvXw== Received: from [212.82.98.51] by nm2.bullet.mail.ir2.yahoo.com with NNFMP; 22 Mar 2017 09:21:39 -0000 Received: from [212.82.98.111] by tm4.bullet.mail.ir2.yahoo.com with NNFMP; 22 Mar 2017 09:21:39 -0000 Received: from [127.0.0.1] by omp1048.mail.ir2.yahoo.com with NNFMP; 22 Mar 2017 09:21:39 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 514988.69042.bm@omp1048.mail.ir2.yahoo.com X-YMail-OSG: UnCMwnAVM1kH8Jzxpc_a2ZnSaO0PrUutFx6R0w8M8gJNRxqRxJpYCBDMNM0sYI5 HW9bRZcD2JrYTU7QL4oNeWIa8JRXhh23VqYmuN9cMd1H0be18JxLDkm0bmdvmKrso5pvAuh76_i7 ly33W7fbseFRFhjHbHpRzrIIIHVhz0NgfZMD5_n9ByCR4hM6HXI0skEOBLmFvfRDuypIvEKUJObD 7ymhCKgzNy0Mn6RHzJln.3w9FNq5Wd8B_4aXwMPvadBaoM97Z1Q4LOdonbZp0U4.7nCNoSZKUbbz .i5DnTCDlcCuS9npGZF8fTIK8oXVUaREewJvVXlMO.db80.NDsgp4MGLXXrbi80RO13UI4uRQVlM u6PAXWdcfmIgSpQOw9eU0IKfBfas0x4220SXx9n00HDcwY9sEflXeYTilwGanJ.ngu3n8rUm1TEM b_DZ5.Ldzp4ov2HwmwllhrE55P8Ft3diFYXiwwy6foyywVM.qUsnoosj2bJDeradC5uQI6nITW1f rmreG28Xp9MLlZ9KISH18vjwwZNdY Received: from jws700056.mail.ir2.yahoo.com by sendmailws110.mail.ir2.yahoo.com; Wed, 22 Mar 2017 09:21:39 +0000; 1490174499.097 Date: Wed, 22 Mar 2017 09:21:36 +0000 (UTC) From: Reply-To: To: "pgsql-admin@postgresql.org" Message-ID: <587579712.444477.1490174496291@mail.yahoo.com> Subject: pg_dump ERROR: missing chunk number 0 for toast value MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit References: <587579712.444477.1490174496291.ref@mail.yahoo.com> Content-Length: 1573 X-Pg-Spam-Score: -4.3 (----) 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 I'm using PostgreSQL 9.3.16 on Windows 7 and the data directory was created from a filesystem backup of an installation running on another machine, which failed. After starting the postgres service I ran `pg_dump` using pgAdminIII to backup the databases. pg_dump.exe --host localhost --port 5433 --username "postgres" --no-password --format custom --blobs --verbose --file "db-2017-03-22.backup" "mydb" One of them reported the following error: pg_dump: dumping contents of table "public.bandana" pg_dump: dumping contents of table "public.bodycontent" pg_dump: Dumping the contents of table "bodycontent" failed: PQgetResult() failed. pg_dump: Error message from server: ERROR: missing chunk number 0 for toast value 314936 in pg_toast_36791 pg_dump: The command was: COPY public.bodycontent (bodycontentid, body, contentid, bodytypeid) TO stdout; Process returned exit code 1. Since then I've done some digging around and run the following commands: REINDEX table pg_toast.pg_toast_36791; VACUUM ANALYZE bodycontent; Both return: Query returned successfully with no result in xx ms. Using pgAdmin I've selected the Maintenace option and run a VACUUM (no options) , ANALYSE and REINDEX and no errors were reported. I ran VACUUM with the FULL option and the following error was reported: INFO: vacuuming "public.plugindata" ERROR: missing chunk number 0 for toast value 289849 in pg_toast_36998 I don't have any experience with postgres or databases in general. Can anyone advise what I should do next? -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin