Re: Bad Data back Door - Mailing list pgsql-hackers

From John R Pierce
Subject Re: Bad Data back Door
Date
Msg-id 507082BE.90307@hogranch.com
Whole thread Raw
In response to Re: Bad Data back Door  (Heikki Linnakangas <hlinnakangas@vmware.com>)
List pgsql-hackers
On 10/06/12 3:45 AM, Heikki Linnakangas wrote:
> At the SQL level, there's the convert(bytea, name, name) function.

ahhh, right.  (forehead slap)

>
>> a 2nd function would do the same, but replace
>> errors with the substitution character in the target charset and not 
>> error.
>
> Hmm, I don't think we have that.

me thinks this would be extremely useful for importing 'dirty' data.   
that or a per-connection flag (or option on the COPY command?)  that 
said "substitute-on-error" for the likes of UTF-8 imports from CSV.



-- 
john r pierce                            N 37, W 122
santa cruz ca                         mid-left coast




pgsql-hackers by date:

Previous
From: Kohei KaiGai
Date:
Subject: Re: ALTER command reworks
Next
From: Tom Lane
Date:
Subject: Re: Bad Data back Door