Re: Functional index and string concatenation - Mailing list pgsql-sql

From Edmund Bacon
Subject Re: Functional index and string concatenation
Date
Msg-id 1078759686.10233.1.camel@elb_lx.onesystem.ca
Whole thread Raw
In response to Functional index and string concatenation  (Daniel Henrique Alves Lima <email_daniel_h@yahoo.com.br>)
Responses 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>)
List 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 by date:

Previous
From: Daniel Henrique Alves Lima
Date:
Subject: Functional index and string concatenation
Next
From: Tom Lane
Date:
Subject: Re: Functional index and string concatenation