agora inbox for postgres@postgres.berkeley.edu
help / color / mirror / Atom feedFrom: Paul M. Aoki <aoki@cs.berkeley.edu>
To: Eric P Dean <ericdean@iastate.edu>
Cc: postgres@postgres.Berkeley.EDU
Subject: Re: Searching on seperate words in an attribute
Date: Fri, 19 Aug 94 16:24:08 -0700
Message-ID: <199408192324.QAA15965@faerie.CS.Berkeley.EDU> (raw)
In-Reply-To: <9408161741.AA07392@pv081c.vincent.iastate.edu>
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.
==============================================================================
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: postgres@postgres.berkeley.edu
Cc: aoki@cs.berkeley.edu, ericdean@iastate.edu
Subject: Re: Searching on seperate words in an attribute
In-Reply-To: <199408192324.QAA15965@faerie.CS.Berkeley.EDU>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox