Re: Functional index and string concatenation

From: Richard Huxton <dev(at)archonet(dot)com>
To: email_daniel_h(at)yahoo(dot)com(dot)br, pgsql-sql(at)postgresql(dot)org
Subject: Re: Functional index and string concatenation
Date: 2004-03-08 17:38:46
Message-ID: 200403081738.46011.dev@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message terry 2004-03-08 19:23:02 Re: Trying to make efficient "all vendors who can provide all items"
Previous Message Daniel Henrique Alves Lima 2004-03-08 16:02:53 Re: Functional index and string concatenation