Re: bytea case sensitivity - Mailing list pgsql-general

From John DeSoi
Subject Re: bytea case sensitivity
Date
Msg-id 988DF772-0EA1-4978-9964-C2EBF0FAD03B@pgedit.com
Whole thread Raw
In response to bytea case sensitivity  (Sim Zacks <sim@compulab.co.il>)
List pgsql-general
On May 21, 2008, at 8:23 AM, Sim Zacks wrote:

> We are testing dbmail on postgresql, which uses a bytea column to
> store
> the messages. Because of this searching through messages is case
> sensitive.
>
> Does anyone know of a way to make it not case-sensitive, either by
> changing the data type (obviously without breaking the current
> functionality) or a Select Rule or any other method?


My suggestion would be to write a trigger and use tsearch to setup a
full text index. Even if you manage a case-insensitive search method,
I doubt it will be useful unless you always plan to have a small
number of messages to search.



John DeSoi, Ph.D.





pgsql-general by date:

Previous
From: "Roberts, Jon"
Date:
Subject: Re: best er modeling tool for postgreSQL
Next
From: "Filip Rembiałkowski"
Date:
Subject: Fwd: sql_type tinterval not supported by DBD::Pg