| From: | Richard Broersma Jr <rabroersma(at)yahoo(dot)com> |
|---|---|
| To: | stafford(at)marine(dot)rutgers(dot)edu, pgsql-sql(at)postgresql(dot)org |
| Subject: | Re: PostgesSQL equivalent of the Oracle 'contains' operator |
| Date: | 2006-11-10 17:27:02 |
| Message-ID: | 686466.47178.qm@web31808.mail.mud.yahoo.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-sql |
> I'm beginning a port of an Oracle application to PostgrSQL. One
> immediate issue is the use of the Oracle 'contains' operator to do
> whole word searches on table rows that contain blank separated lists of
> names. I was told that the original application was written using the
> 'like' operator but the contains operator was found to be much faster.
>
> Is there a PostgreSQL equivalent for this type of use of the Oracle
> contains?
The other methods are to use regular expressions, but I do not expect them to be any faster than a
like. Have you looked at the contrib module tsearch2?
http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/
Regards,
Richard Broersma Jr.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Ezequias Rodrigues da Rocha | 2006-11-10 18:34:27 | Re: Between and miliseconds (timestamps) |
| Previous Message | Wm.A.Stafford | 2006-11-10 16:10:22 | PostgesSQL equivalent of the Oracle 'contains' operator |