Re: Upcoming PG re-releases - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Upcoming PG re-releases
Date
Msg-id 8437.1133715165@sss.pgh.pa.us
Whole thread Raw
In response to Re: Upcoming PG re-releases  (Paul Lindner <lindner@inuus.com>)
List pgsql-hackers
Paul Lindner <lindner@inuus.com> writes:
> On Sun, Dec 04, 2005 at 11:34:16AM -0500, Tom Lane wrote:
>> Paul Lindner <lindner@inuus.com> writes:
>>> iconv -c -f UTF8 -t UTF8 -o fixed.sql dump.sql
>>
>> Is that really a one-size-fits-all solution?  Especially with -c?

> I'd say yes, and the -c flag is needed so iconv strips out the
> invalid characters.

That's exactly what's bothering me about it.  If we recommend that
we had better put a large THIS WILL DESTROY YOUR DATA warning first.
The problem is that the data is not "invalid" from the user's point
of view --- more likely, it's in some non-UTF8 encoding --- and so
just throwing away some of the characters is unlikely to make people
happy.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Paul Lindner
Date:
Subject: Re: Upcoming PG re-releases
Next
From: Kevin Brown
Date:
Subject: Re: Reducing relation locking overhead