Re: Using In Clause For a Large Text Matching Query

From: Jason Farmer <jfarmer(at)getloaded(dot)com>
To: Richard Broersma Jr <rabroersma(at)yahoo(dot)com>
Cc: Erik Jones <erik(at)myemma(dot)com>, General Postgresql List <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Using In Clause For a Large Text Matching Query
Date: 2006-06-30 12:31:16
Message-ID: 44A51994.5040506@getloaded.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Ah, I do think that sounds about like what I want! Let me play with this
one some, thanks so much!!

Richard Broersma Jr wrote:
>> Well, there is also: <a
>> href="http://www.postgresql.org/docs/8.1/interactive/functions-comparisons.html#AEN13377">
>>
>> /expression/ /operator/ ANY (/array expression/)</a>. So, if you have a way to preprocess you
>> input text fields that you want matched
>> you could build a regex for each and feed them in an array to an '~ ANY' expression like so (or,
>> use ~* for case
>> insensitive matching):
>>
>> SELECT col1
>> FROM table
>> WHERE col1 ~ ANY (ARRAY['regex1', 'regex2', ...]);
>>
>
> Good point, But don't forget to include the list in your response. :-)
>
> Regards,
>
> Richard Broersma Jr.
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faq
>
>

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Mario Splivalo 2006-06-30 12:35:48 Views and query planner
Previous Message Jure Kodzoman 2006-06-30 09:51:25 Re: Data Entry and Query forms