Using lower in create index

Поиск
Список
Период
Сортировка
От pierre
Тема Using lower in create index
Дата
Msg-id 199811110120.BAA68486@out1.ibm.net
обсуждение исходный текст
Список pgsql-sql
I've been trying to create an index on a varchar field and I've tried
using the following to create the index.

create table subject (
  name varchar(85)
);

create index subject_idx on subject using btree(lower(name) text_ops);

Gives me an error that the function lower(varchar) doesn't exist. I've
tried
placing a text(name) to force the arg to a text value, but get a syntax
error.

Anyone have Ideas on creating a lowercase index on a field that isn't
always lowercase?

Pierre

В списке pgsql-sql по дате отправления:

Предыдущее
От: Bob Kruger
Дата:
Сообщение: Incrementing a Serial Fields
Следующее
От: Jorge Maturana
Дата:
Сообщение: Current User