From: Richard Broersma Jr <rabroersma@yahoo.com>
To: stafford@marine.rutgers.edu
To: pgsql-sql@postgresql.org
Subject: Re: PostgesSQL equivalent of the Oracle 'contains' operator
Date: Fri, 10 Nov 2006 09:27:02 -0800 (PST)
Message-ID: <686466.47178.qm@web31808.mail.mud.yahoo.com> (raw)
In-Reply-To: <4554A46E.5020201@marine.rutgers.edu>
> 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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: rabroersma@yahoo.com, stafford@marine.rutgers.edu
Subject: Re: PostgesSQL equivalent of the Oracle 'contains' operator
In-Reply-To: <686466.47178.qm@web31808.mail.mud.yahoo.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox