Re: Allow multi-byte characters as escape in SIMILAR TO and SUBSTRING - Mailing list pgsql-hackers

From Fujii Masao
Subject Re: Allow multi-byte characters as escape in SIMILAR TO and SUBSTRING
Date
Msg-id CAHGQGwHcSNW1U2=14gPN6rWrpOBL4P4jUZCgPRB-xz1Yq_qFQw@mail.gmail.com
Whole thread Raw
In response to Allow multi-byte characters as escape in SIMILAR TO and SUBSTRING  (Jeff Davis <pgsql@j-davis.com>)
Responses Re: Allow multi-byte characters as escape in SIMILAR TO and SUBSTRING
List pgsql-hackers
On Fri, Jul 11, 2014 at 12:49 PM, Jeff Davis <pgsql@j-davis.com> wrote:
> Attached is a small patch to $SUBJECT.
>
> In master, only single-byte characters are allowed as an escape. Of
> course, with the patch it must still be a single character, but it may
> be multi-byte.

+1

Probably you know that, multi-byte character is already allowed
as escape in LIKE. There seems no reason why we don't support
multi-byte escape character in SIMILAR TO and SUBSTRING.

Could you add the patch into next CF?

The patch doesn't contain the change of the document. But I think that
it's better to document what character is allowed as escape in LIKE,
SIMILAR TO and SUBSTRING.

Regards,

-- 
Fujii Masao



pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Pg_upgrade and toast tables bug discovered
Next
From: Fujii Masao
Date:
Subject: Re: Minmax indexes