Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 4908D475CBB for ; Tue, 25 Jun 2002 16:55:41 -0400 (EDT) Mailbox-Line: From josh@agliodbs.com Tue Jun 25 16:55:41 2002 Received: from davinci.ethosmedia.com (davinci.ethosmedia.com [209.10.40.250]) by postgresql.org (Postfix) with ESMTP id 01B794762C1 for ; Tue, 25 Jun 2002 16:07:17 -0400 (EDT) Received: from [66.219.92.2] (HELO chocolate-mousse) by davinci.ethosmedia.com (CommuniGate Pro SMTP 3.5.9) with ESMTP id 1556347; Tue, 25 Jun 2002 13:07:16 -0700 Content-Type: text/plain; charset="iso-8859-1" From: Josh Berkus Reply-To: josh@agliodbs.com Organization: Aglio Database Solutions To: Bruno Wolff III , pgsql-sql@postgresql.org Subject: Re: unique index on function and column Date: Tue, 25 Jun 2002 13:09:25 -0700 X-Mailer: KMail [version 1.4] References: <20020625175828.GA11107@wolff.to> In-Reply-To: <20020625175828.GA11107@wolff.to> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200206251309.25232.josh@agliodbs.com> X-Spam-Status: No, hits=-3.4 required=5.0 tests=IN_REP_TO version=2.30 X-Spam-Level: X-Archive-Number: 200206/338 X-Sequence-Number: 8303 Bruno, > Is there a simple way to do something like the following: > create unique index inst_u_app on inst (lower(host), psport); >=20 > It looks like you can have an index on several columns, but not > several functions. So? Create two seperate indexes. Multi-column indexes are almost always less useful that you'd expected,=20 anyway. --=20 -Josh Berkus