Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id D99A21337BE6 for ; Thu, 17 Mar 2011 05:08:02 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 97875-03 for ; Thu, 17 Mar 2011 08:07:53 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wy0-f174.google.com (mail-wy0-f174.google.com [74.125.82.174]) by mail.postgresql.org (Postfix) with ESMTP id 047431337BC3 for ; Thu, 17 Mar 2011 05:07:52 -0300 (ADT) Received: by wya21 with SMTP id 21so2500896wya.19 for ; Thu, 17 Mar 2011 01:07:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=DM+eIE8tX+T5OftVq2uctT9ZLnlHoedbIN9aOOeVxRg=; b=m3pOBW8lSwVjH18PJLylFXw7UTQIKVksJjljpmvB3uhrkTDylGZ8/O6LK2mZmzJEWb 13I4bT40prGWFv/bX1CnuM0I1JNh12tizHk7JiQA7FL5PcpMFDPlYviZM3c5qlknN6As t2PK0mLdMUoNuxZmPwb77+Tm/JDGKQCJGRcPA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=SsauGuA5KLZZ40xE0NhMrletaIB1iL7pXQxpxk0dezM3M1/KttI+3iqCwdOe5Olynk xlIou268AA6dQRFMZY/Jsz/Lzv6CuLH7XSlFXBsClnC26eymIDz7lNVmWNAusXw6BqeG kr5OOeAZ1D47PP0aL8d+qEBodOVCd/o+QyfAA= Received: by 10.216.166.67 with SMTP id f45mr495463wel.112.1300349271748; Thu, 17 Mar 2011 01:07:51 -0700 (PDT) Received: from [192.168.1.110] (12.17.50.84.dyn.estpak.ee [84.50.17.12]) by mx.google.com with ESMTPS id d54sm964135wej.34.2011.03.17.01.07.49 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 17 Mar 2011 01:07:50 -0700 (PDT) Message-ID: <4D81C154.9070404@gmail.com> Date: Thu, 17 Mar 2011 10:07:48 +0200 From: Tambet Matiisen User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.15) Gecko/20110303 Lightning/1.0b2 Thunderbird/3.1.9 MIME-Version: 1.0 To: Kevin Grittner CC: pgsql-bugs@postgresql.org Subject: Re: BUG #5929: ERROR: found toasted toast chunk for toast value 260340218 in pg_toast_260339342 References: <201103150928.p2F9STAd078435@wwwmaster.postgresql.org> <4D7F5FD0020000250003B8E1@gw.wicourts.gov> <4D809A96.6050209@gmail.com> <4D808C70020000250003B98B@gw.wicourts.gov> <4D810A97.3000602@gmail.com> <4D80D75F020000250003B9C0@gw.wicourts.gov> In-Reply-To: <4D80D75F020000250003B9C0@gw.wicourts.gov> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7 X-Spam-Level: X-Archive-Number: 201103/239 X-Sequence-Number: 29749 On 16.03.2011 22:29, Kevin Grittner wrote: > Tambet Matiisen wrote: >> Yes, I use pg_dump on live server and the result is >> rdiff-backupped into development server. Whole SQL dump is 12G >> without compression and the rdiff delta is about 10-20MB every >> day. Then I drop pre-live database on development server and >> recreate it using createdb and psql. > > createdb, not initdb? I suggest you backup and delete everything in > the data directory, and start with initdb, and see whether the > problem still exists. If it goes away, the problem was in your > shared system tables. If it persists, the problem is in your backup > files, and I would try a delete and a fresh copy. If *that* fixes > it you know the problem was with rdiff-backup. (Of course, keeping > copies of things before the delete might provide useful forensic > information.) Yes, I use createdb to recreate just one database. I doubt backup files could cause such an error, they are plain SQL files. Today I got another error, so it seems to get worse: Warning: pg_dump: WARNING: could not write block 188224 of base/2802415579/2802416218 DETAIL: Multiple failures --- write error might be permanent. pg_dump: SQL command failed pg_dump: Error message from server: ERROR: xlog flush request 200EB/9E4CD48 is not satisfied --- flushed only to CC/3F22EFB4 LINE 1: ...LECT tableoid, oid, nspname, (SELECT rolname FROM pg_catalog... ^ CONTEXT: writing block 188224 of relation base/2802415579/2802416218 pg_dump: The command was: SELECT tableoid, oid, nspname, (SELECT rolname FROM pg_catalog.pg_roles WHERE oid = nspowner) AS rolname, nspacl FROM pg_namespace pg_dumpall: pg_dump failed on database "hekotekerp", exiting Warning: Failed to dump pgsql cluster Strange that I have no problems actually using that database. > >> For a while development server was running 8.4 and live server >> 8.1. Now both are 8.4, but this shouldn't matter, as I do backup >> and restore via SQL. > > I hope you were using the 8.4 version of pg_dump when you were in > the dual-version situation. Using the earlier version of pg_dump is > not guaranteed to provide a backup which can be cleanly installed on > a later version. That could *possibly* be related to current > problems. I used 8.1 version of pg_dump previously, but had no problems with it. Currently both are 8.4, so this is not a problem. >> Development server contains some additional databases as well, >> that do not exist on live server. > > So are you really using pg_dumpall or pg_dump? I'm using pg_dump on live server and pg_dumpall on development server. > >> It's not ECC memory. > > Well, then there has been proven to be a non-negligible possibility > of occasional random bit-flips. Seriously, next time you upgrade, > make sure any database server has ECC RAM. Thanks for a tip, will do that. > >> It is possible, that restore of pre-live database using psql lasts >> so long, that backup of the same database using pg_dump is already >> kicking in. > > Hmmm... You might want to do enough logging of the processes to be > able to confirm or eliminate that possibility. Dumping an > incompletely-restored database might generate some odd errors. > Thanks Kevin for suggestions, investigating further... Tambet