Re: Bug in COPY FROM backslash escaping multi-byte chars

From: John Naylor <john(dot)naylor(at)enterprisedb(dot)com>
To: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Bug in COPY FROM backslash escaping multi-byte chars
Date: 2021-02-03 13:38:11
Message-ID: CAFBsxsHHqq1VHQD4WApoh=tnreV8P1FEvOPeg9LN3HBbJR6YAA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Feb 3, 2021 at 8:08 AM Heikki Linnakangas <hlinnaka(at)iki(dot)fi> wrote:
>
> Hi,
>
> While playing with COPY FROM refactorings in another thread, I noticed
> corner case where I think backslash escaping doesn't work correctly.
> Consider the following input:
>
> \么.foo

I've seen multibyte delimiters in the wild, so it's not as outlandish as it
seems. The fix is simple enough, so +1.

--
John Naylor
EDB: http://www.enterprisedb.com

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2021-02-03 13:46:30 Re: Bug in COPY FROM backslash escaping multi-byte chars
Previous Message Amit Kapila 2021-02-03 12:55:19 Re: Typo in tablesync comment