Re: Bad Data back Door

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Bad Data back Door
Date: 2012-10-06 19:13:02
Message-ID: 507082BE.90307@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2012-10-06 19:35:19 Re: Bad Data back Door
Previous Message Kohei KaiGai 2012-10-06 18:58:24 Re: ALTER command reworks