X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id D00B2D1B46C for ; Wed, 7 Jan 2004 18:46:33 +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 66808-09 for ; Wed, 7 Jan 2004 14:45:50 -0400 (AST) Received: from curie.credativ.org (credativ.com [217.160.209.18]) by svr1.postgresql.org (Postfix) with ESMTP id 7AA12D1CCE1 for ; Wed, 7 Jan 2004 14:36:49 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by curie.credativ.org (Postfix) with ESMTP id 1D5A656243; Wed, 7 Jan 2004 19:36:55 +0100 (CET) Received: from colt.pezone.net (dsl-213-023-254-001.arcor-ip.net [213.23.254.1]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by curie.credativ.org (Postfix) with ESMTP id 5572D56240; Wed, 7 Jan 2004 19:36:54 +0100 (CET) From: Peter Eisentraut To: Andreas , pgsql-sql@postgresql.org Subject: Re: Notation of index Date: Wed, 7 Jan 2004 19:36:53 +0100 User-Agent: KMail/1.5.1 References: <3FFC3D30.2080508@gmx.net> In-Reply-To: <3FFC3D30.2080508@gmx.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200401071936.53243.peter_e@gmx.net> X-Virus-Scanned: by AMaViS at credativ.com X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200401/42 X-Sequence-Number: 16435 Andreas wrote: > Why can['t] we use INDEX the same way as UNIQUE ? > Perhaps even as in > ... > numba INT4 NOT NULL INDEX > ... If the choice were just index or no index, then this might be ok, but when you create an index you can choose the index type, the operator class, a partial index predicate, so the notation would quickly become complicated. You can also consider similar arguments about why rules and triggers are created separately. What would clearly be useful is a way to automatically generate names for indexes. Maybe we should think about implementing something for that.