Re: like/ilike improvements - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: like/ilike improvements
Date
Msg-id 465450DE.7020609@dunslane.net
Whole thread Raw
In response to Re: like/ilike improvements  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: like/ilike improvements
List pgsql-hackers

Tom Lane wrote:
>
> 3. UTF8: % can advance bytewise.  _ must check it is on a first byte
> (else return match failure) and if so do NextChar.  So primitives
> are NextChar, NextByte, ByteEq, IsFirstByte.
>
>
>   

We should only be able to get out of step from the "%_" case, I believe, 
so we should only need to do the first-byte test in that case (which is 
in a different code path from the normal "_" case. Does that seem right?

cheers

andrew


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Re: [Oledb-dev] double precision error with pg linux server, but not with windows pg server
Next
From: Tom Lane
Date:
Subject: Re: like/ilike improvements