Re: unique index on function and column

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: unique index on function and column
Дата
Msg-id 200206251309.25232.josh@agliodbs.com
обсуждение исходный текст
Ответ на unique index on function and column  (Bruno Wolff III <bruno@wolff.to>)
Ответы Re: unique index on function and column  (Bruno Wolff III <bruno@wolff.to>)
Список pgsql-sql
Bruno,

> Is there a simple way to do something like the following:
> create unique index inst_u_app on inst (lower(host), psport);
>
> It looks like you can have an index on several columns, but not
> several functions.

So?  Create two seperate indexes.

Multi-column indexes are almost always less useful that you'd expected,
anyway.

--
-Josh Berkus





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

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Re: unique index on function and column
Следующее
От: Bruno Wolff III
Дата:
Сообщение: Re: unique index on function and column