pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@commandprompt.com>
To: Castro <flashed@iol.pt>
Cc: pgsql-bugs <pgsql-bugs@postgresql.org>
Subject: Re: BUG #5925: Files corrupted
Date: Fri, 11 Mar 2011 12:04:31 -0300
Message-ID: <1299855801-sup-2908@alvh.no-ip.org> (raw)
In-Reply-To: <201103111206.p2BC60tC096496@wwwmaster.postgresql.org>
References: <201103111206.p2BC60tC096496@wwwmaster.postgresql.org>

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 <alvherre@commandprompt.com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support



view thread (2+ messages)

Message-ID: <1299855801-sup-2908@alvh.no-ip.org>
Permalink:  ../1299855801-sup-2908@alvh.no-ip.org/
Also on:    postgresql.org/message-id/1299855801-sup-2908@alvh.no-ip.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: alvherre@commandprompt.com, flashed@iol.pt
  Subject: Re: BUG #5925: Files corrupted
  In-Reply-To: <1299855801-sup-2908@alvh.no-ip.org>
  References: <201103111206.p2BC60tC096496@wwwmaster.postgresql.org> <1299855801-sup-2908@alvh.no-ip.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox