Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 7A1F91337B61 for ; Fri, 11 Mar 2011 11:05:14 -0400 (AST) 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 35870-06 for ; Fri, 11 Mar 2011 15:05:07 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from spinlock.commandprompt.com (unknown [207.173.203.215]) by mail.postgresql.org (Postfix) with ESMTP id 037D113364DE for ; Fri, 11 Mar 2011 11:05:06 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by spinlock.commandprompt.com (Postfix) with ESMTP id 2E254348046; Fri, 11 Mar 2011 07:04:44 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at commandprompt.com Received: from spinlock.commandprompt.com ([127.0.0.1]) by localhost (spinlock.commandprompt.com.commandprompt.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id seZdJE607wBj; Fri, 11 Mar 2011 07:04:34 -0800 (PST) Received: from perhan.alvh.no-ip.org (unknown [190.95.20.220]) by spinlock.commandprompt.com (Postfix) with ESMTPSA id 46B88348022; Fri, 11 Mar 2011 07:04:34 -0800 (PST) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 678376E58B; Fri, 11 Mar 2011 12:04:31 -0300 (CLST) Content-Type: text/plain; charset=UTF-8 Cc: pgsql-bugs Subject: Re: BUG #5925: Files corrupted From: Alvaro Herrera To: Castro In-reply-to: <201103111206.p2BC60tC096496@wwwmaster.postgresql.org> References: <201103111206.p2BC60tC096496@wwwmaster.postgresql.org> Date: Fri, 11 Mar 2011 12:04:31 -0300 Message-Id: <1299855801-sup-2908@alvh.no-ip.org> User-Agent: Sup/git Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.107 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RDNS_NONE=0.793 X-Spam-Level: X-Archive-Number: 201103/199 X-Sequence-Number: 29709 Excerpts from Castro's message of vie mar 11 09:06:00 -0300 2011: > > The following bug has been logged online: > > Bug reference: 5925 > Logged by: Castro > Email address: flashed@iol.pt > PostgreSQL version: 9.0 > Operating system: Windows Server 2003 > Description: Files corrupted > Details: > > I change Postgresql v8.4 to v9. Before that i bakup all databases. After > Postgresql v9 installed i restore the backup. One of the database has a > table that contains files(pdf, png, etc...). > > When i tryed to open this files, the windows give me a error "File > corrupt". > > Can u help with this error, why the change of postgresql to version 9 > corrupted the files? I think you're being bitten by the bytea_output change. Try setting that to "escape" in postgresql.conf. If that works, look it up in the manual so that you can figure out what's the best long-term solution. -- Álvaro Herrera The PostgreSQL Company - Command Prompt, Inc. PostgreSQL Replication, Consulting, Custom Development, 24x7 support