Re: Functional index and string concatenation

Поиск
Список
Период
Сортировка
От Edmund Bacon
Тема Re: Functional index and string concatenation
Дата
Msg-id 1078759686.10233.1.camel@elb_lx.onesystem.ca
обсуждение исходный текст
Ответ на Functional index and string concatenation  (Daniel Henrique Alves Lima <email_daniel_h@yahoo.com.br>)
Ответы Re: Functional index and string concatenation  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Functional index and string concatenation  (Daniel Henrique Alves Lima <email_daniel_h@yahoo.com.br>)
Список pgsql-sql
On Mon, 2004-03-08 at 08:19, Daniel Henrique Alves Lima wrote:
>     Is there a way to create a "functional index" over a string 
> concatenation of two columns ?
> 
>     Thanks.
> 
Like this?

test=# create table strtable (x int, str1 text, str2 text);
CREATE TABLE
test=# create index str_idx on strtable( textcat(str1, str2) );
CREATE INDEX
test=# 

-- 
Edmund Bacon <ebacon@onesystem.com>



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

Предыдущее
От: Daniel Henrique Alves Lima
Дата:
Сообщение: Functional index and string concatenation
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Functional index and string concatenation