pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Broersma Jr <rabroersma@yahoo.com>
To: 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: Thu, 29 Jun 2006 17:17:38 -0700 (PDT)
Message-ID: <20060630001738.11455.qmail@web31801.mail.mud.yahoo.com> (raw)
In-Reply-To: <44A4572C.6080008@myemma.com>

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



view thread (4+ messages)  latest in thread

Message-ID: <20060630001738.11455.qmail@web31801.mail.mud.yahoo.com>
Permalink:  ../20060630001738.11455.qmail@web31801.mail.mud.yahoo.com/
Also on:    postgresql.org/message-id/20060630001738.11455.qmail@web31801.mail.mud.yahoo.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: rabroersma@yahoo.com, erik@myemma.com
  Subject: Re: Using In Clause For a Large Text Matching Query
  In-Reply-To: <20060630001738.11455.qmail@web31801.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