Return-Path: owner-postman
Received: from localhost.Berkeley.EDU (localhost.Berkeley.EDU [127.0.0.1]) by nobozo.CS.Berkeley.EDU (8.6.9/8.6.3) with SMTP id QAA17272 for postgres-redist; Fri, 19 Aug 1994 16:24:18 -0700
Resent-From: POSTGRES mailing list <postman@postgres.Berkeley.EDU>
Resent-Message-Id: <199408192324.QAA17272@nobozo.CS.Berkeley.EDU>
Sender: owner-postman@postgres.Berkeley.EDU
X-Return-Path: owner-postman
Received: from faerie.CS.Berkeley.EDU (faerie.CS.Berkeley.EDU [128.32.37.53]) by nobozo.CS.Berkeley.EDU (8.6.9/8.6.3) with ESMTP id QAA17262 for <postgres@postgres.Berkeley.EDU>; Fri, 19 Aug 1994 16:24:17 -0700
Received: from localhost.Berkeley.EDU (localhost.Berkeley.EDU [127.0.0.1]) by faerie.CS.Berkeley.EDU (8.6.9/8.1B) with SMTP id QAA15965; Fri, 19 Aug 1994 16:24:14 -0700
Message-Id: <199408192324.QAA15965@faerie.CS.Berkeley.EDU>
X-Authentication-Warning: faerie.CS.Berkeley.EDU: Host localhost.Berkeley.EDU didn't use HELO protocol
From: aoki@cs.berkeley.edu (Paul M. Aoki)
To: Eric P Dean <ericdean@iastate.edu>
Cc: postgres@postgres.Berkeley.EDU
Subject: Re: Searching on seperate words in an attribute 
Reply-To: aoki@cs.berkeley.edu (Paul M. Aoki)
In-reply-to: Your message of Tue, 16 Aug 1994 12:41:42 CDT 
	     <9408161741.AA07392@pv081c.vincent.iastate.edu> 
Date: Fri, 19 Aug 94 16:24:08 -0700
X-Sender: aoki@postgres.Berkeley.EDU
Resent-To: postgres-redist@postgres.Berkeley.EDU
X-Mts: smtp
Resent-Date: Fri, 19 Aug 94 16:24:17 -0700
Resent-XMts: smtp

Eric P Dean <ericdean@iastate.edu> writes:
> If I have an attribute "artist = Gogh, Vincent van" I would like to
> be able to locate the instance by doing a "retrieve (xxx.all) where
> xxx.artist = "gogh"" or "retrieve (xxx.all) where xxx.artist =
> "VAN"". I would like searches to be case-insensitive and have some
> type of truncation feature.

there are some regular expression operators, such as the text regex
operator "~":

	where xxx.artist ~ "gogh"::text

or

	where xxx.artist ~ "[vV][aA][nN]"::text

if you want case insensitivity as opposed to using case-conscious
regular expressions, you would have to hack on the routines in
src/utils/adt/regexp.c.

as with most of the abstract data type stuff, the source is the
ultimate documentation for its behavior.
--
  Paul M. Aoki          |  University of California at Berkeley
  aoki@CS.Berkeley.EDU  |  Dept. of EECS, Computer Science Division (#1776) 
                        |  Berkeley, CA 94720-1776

==============================================================================
   To add/remove yourself to/from the POSTGRES mailing list: send mail with 
   the subject line ADD or DEL to "postgres-request@postgres.Berkeley.EDU"

   If this fails, send mail to "post_questions@postgres.Berkeley.EDU" and
   a human will deal with it.  DO NOT post to the "postgres" mailing list.
==============================================================================
