Skip site navigation (1) Skip section navigation (2)

Re: like/ilike improvements

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: andrew(at)supernews(dot)com, pgsql-hackers(at)postgresql(dot)org
Subject: Re: like/ilike improvements
Date: 2007-05-23 14:34:06
Message-ID: 465450DE.7020609@dunslane.net (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-patches

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

In response to

Responses

pgsql-hackers by date

Next:From: Tom LaneDate: 2007-05-23 14:38:53
Subject: Re: CREATE TABLE LIKE INCLUDING INDEXES support
Previous:From: Alvaro HerreraDate: 2007-05-23 14:24:42
Subject: Re: CREATE TABLE LIKE INCLUDING INDEXES support

pgsql-patches by date

Next:From: Tom LaneDate: 2007-05-23 14:38:53
Subject: Re: CREATE TABLE LIKE INCLUDING INDEXES support
Previous:From: Alvaro HerreraDate: 2007-05-23 14:24:42
Subject: Re: CREATE TABLE LIKE INCLUDING INDEXES support

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group