Index on a function(field)

Поиск
Список
Период
Сортировка
От Gabriel Fernandez
Тема Index on a function(field)
Дата
Msg-id 3AFC246A.78908698@unica.edu
обсуждение исходный текст
Ответы Re: Index on a function(field)
Список pgsql-general
Hi,

Is it possible to create an index using a function(field) sintaxis ?

For instance:

CREATE  INDEX "i1_cdu" on "cdu" using btree ( substr(cdu_code,1,1)
"varchar_ops" );

If not, should I alter the table to include a field with the value
'substr(codigo,1,1)'.

Thanks

Gabi :-)


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

Предыдущее
От: Philip Crotwell
Дата:
Сообщение: Re: defunct postmasters
Следующее
От: Philip Crotwell
Дата:
Сообщение: Re: defunct postmasters