pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jason Farmer <jfarmer@getloaded.com>
To: Richard Broersma Jr <rabroersma@yahoo.com>
Cc: Erik Jones <erik@myemma.com>
Cc: General Postgresql List <pgsql-sql@postgresql.org>
Subject: Re: Using In Clause For a Large Text Matching Query
Date: Fri, 30 Jun 2006 08:31:16 -0400
Message-ID: <44A51994.5040506@getloaded.com> (raw)
In-Reply-To: <20060630001738.11455.qmail@web31801.mail.mud.yahoo.com>
References: <20060630001738.11455.qmail@web31801.mail.mud.yahoo.com>

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
>
>   



view thread (4+ messages)

Message-ID: <44A51994.5040506@getloaded.com>
Permalink:  ../44A51994.5040506@getloaded.com/
Also on:    postgresql.org/message-id/44A51994.5040506@getloaded.com

 · 

reply

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: jfarmer@getloaded.com, rabroersma@yahoo.com, erik@myemma.com
  Subject: Re: Using In Clause For a Large Text Matching Query
  In-Reply-To: <44A51994.5040506@getloaded.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