Re: bytea case sensitivity

Поиск
Список
Период
Сортировка
От John DeSoi
Тема Re: bytea case sensitivity
Дата
Msg-id 988DF772-0EA1-4978-9964-C2EBF0FAD03B@pgedit.com
обсуждение исходный текст
Ответ на bytea case sensitivity  (Sim Zacks <sim@compulab.co.il>)
Список 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 по дате отправления:

Предыдущее
От: "Roberts, Jon"
Дата:
Сообщение: Re: best er modeling tool for postgreSQL
Следующее
От: "Filip Rembiałkowski"
Дата:
Сообщение: Fwd: sql_type tinterval not supported by DBD::Pg