X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id E7700D1DB90 for ; Mon, 8 Mar 2004 17:38:54 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 61361-08 for ; Mon, 8 Mar 2004 13:38:51 -0400 (AST) Received: from anchor-post-34.mail.demon.net (anchor-post-34.mail.demon.net [194.217.242.92]) by svr1.postgresql.org (Postfix) with ESMTP id 391E6D1D9E6 for ; Mon, 8 Mar 2004 13:38:50 -0400 (AST) Received: from mwynhau.demon.co.uk ([193.237.186.96] helo=mainbox.archonet.com) by anchor-post-34.mail.demon.net with esmtp (Exim 3.35 #1) id 1B0OiH-0007DF-0Y; Mon, 08 Mar 2004 17:38:49 +0000 Received: by mainbox.archonet.com (Postfix, from userid 529) id 7A57016568; Mon, 8 Mar 2004 17:38:48 +0000 (GMT) Received: from client17.archonet.com (client17.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id 3B535164C5; Mon, 8 Mar 2004 17:38:46 +0000 (GMT) From: Richard Huxton To: email_daniel_h@yahoo.com.br, pgsql-sql@postgresql.org Subject: Re: Functional index and string concatenation Date: Mon, 8 Mar 2004 17:38:46 +0000 User-Agent: KMail/1.5 References: <404C8F08.2070403@yahoo.com.br> <1078759686.10233.1.camel@elb_lx.onesystem.ca> <404C992D.1060407@yahoo.com.br> In-Reply-To: <404C992D.1060407@yahoo.com.br> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200403081738.46011.dev@archonet.com> X-Bogosity: No, tests=bogofilter, spamicity=0.000000, version=0.15.3 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200403/61 X-Sequence-Number: 17160 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