RE: [GENERAL] non-case sensitive searches

From: "Jackson, DeJuan" <djackson(at)cpsgroup(dot)com>
To: "Gene Selkov Jr(dot)" <selkovjr(at)mcs(dot)anl(dot)gov>, Kevin Heflin <kheflin(at)shreve(dot)net>, pgsql-general(at)postgreSQL(dot)org
Subject: RE: [GENERAL] non-case sensitive searches
Date: 1999-01-13 23:42:20
Message-ID: F10BB1FAF801D111829B0060971D839F5DC750@cpsmail
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> > > You can also use regexp expression like this :
> > >
> > > SELECT * FROM photos WHERE keywords ~* '.*$cat_name.*';
> > >
> > > it works fine.
> >
> >
> > Thanks for the tip. Any recommendations as to which would
> be faster when
> > searching about 2,000 records or so..
>
> LIKE is faster, but with 2,000 records, you won't be able to tell the
> difference. It takes a blink.
>
> --Gene

And remember unless you use full text indexing (which is expensive) you
won't have indexing on that search (for either the LIKE or regex).
-DEJ

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Paolo P. Lo Giacco 1999-01-13 23:45:10 Delphi+Postgress
Previous Message Jackson, DeJuan 1999-01-13 23:34:06 RE: [GENERAL] PRIMARY/FOREIGN KEY statements