Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 242A3476903 for ; Fri, 28 Jun 2002 07:09:25 -0400 (EDT) Mailbox-Line: From chantal.ackermann@biomax.de Fri Jun 28 07:09:25 2002 Received: from biomax.de (kostyaleucin.biomax.de [212.6.137.236]) by postgresql.org (Postfix) with ESMTP id A82A7475F94 for ; Fri, 28 Jun 2002 07:09:23 -0400 (EDT) Received: from biomax.de (guffert.biomax.de [192.168.3.166]) by biomax.de (8.8.8/8.8.8) with ESMTP id NAA14749 for ; Fri, 28 Jun 2002 13:07:45 +0200 Message-ID: <3D1C44DD.9040400@biomax.de> Date: Fri, 28 Jun 2002 13:13:33 +0200 From: Chantal Ackermann User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020529 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-sql@postgresql.org Subject: creating functional index over multiple columns Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=1.1 required=5.0 tests=DOUBLE_CAPSWORD version=2.30 X-Spam-Level: * X-Archive-Number: 200206/385 X-Sequence-Number: 8350 hello all, I am new to this list, and I hope my request is well placed, here. I tried searching the archives but I wasn't lucky. I want to create an index over two columns and one function: the WHERE clause is: WHERE lower(name)=? AND type_id=? AND syn_id=? I know from the docs that I have to create on function that wraps these three values for creating the appropriate index. I have practically no idea how to do this (e.g. what type/set should this function return?). Thanks a lot for pointers to documentation/former postings or any help Cheers Chantal