Re: Functional index and string concatenation

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: Functional index and string concatenation
Дата
Msg-id 200403081738.46011.dev@archonet.com
обсуждение исходный текст
Ответ на Re: Functional index and string concatenation  (Daniel Henrique Alves Lima <email_daniel_h@yahoo.com.br>)
Список pgsql-sql
On Monday 08 March 2004 16:02, Daniel Henrique Alves Lima wrote:
>     Yes, i was searching for the name of equivalent function to "||"
> operator...
>
>     Now, i've got a new problem: I need to concat three values (two
> column values and a sepator constant). But from documentation: " The
> function in the index definition can take more than one argument, but
> they must be table columns, not constants" and "there cannot be
> multicolumn indexes that contain function calls".
>
>     Maybe i should to create a new pgsql function.

Yes - a wrapper function is the standard solution. I don't think you need to 
do this in 7.4 though.

--  Richard Huxton Archonet Ltd


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

Предыдущее
От:
Дата:
Сообщение: Trying to make efficient "all vendors who can provide all items"
Следующее
От:
Дата:
Сообщение: Re: Trying to make efficient "all vendors who can provide all items"