Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 80F4F632724 for ; Wed, 25 Aug 2010 03:59:11 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 76733-01 for ; Wed, 25 Aug 2010 06:59:03 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sd-17937.dedibox.fr (sd-17937.dedibox.fr [88.191.100.74]) by mail.postgresql.org (Postfix) with ESMTP id 159826326C5 for ; Wed, 25 Aug 2010 03:59:02 -0300 (ADT) Received: from [192.168.10.2] (ASte-Genev-Bois-153-1-30-248.w83-112.abo.wanadoo.fr [83.112.76.248]) by sd-17937.dedibox.fr (Postfix) with ESMTPA id 5C5493B8F5; Wed, 25 Aug 2010 08:59:00 +0200 (CEST) Message-ID: <4C74BF33.3080901@lelarge.info> Date: Wed, 25 Aug 2010 08:58:59 +0200 From: Guillaume Lelarge User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); fr; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 MIME-Version: 1.0 To: Thom Brown CC: Justin Graf , Kevin.Grittner@wicourts.gov, depesz@depesz.com, postgres performance list Subject: Re: Are Indices automatically generated for primary keys? References: <4C6BA0F6020000250003481C@gw.wicourts.gov> <4C6C050F.5050608@magwerks.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201008/276 X-Sequence-Number: 40119 Le 18/08/2010 17:23, Thom Brown a écrit : > On 18 August 2010 17:06, Justin Graf wrote: >> On 8/18/2010 9:15 AM, Clemens Eisserer wrote: >>> Hi, >>> >>> >>>> they are generated automatically. >>>> >>> Thanks depesz! >>> The reason why I asked was because pgAdmin doesn't display the >>> automatically created indices, which confused me. >>> >>> Thanks, Clemens >>> >> PGAdmin caches all database layout locally, the tree view can get very >> stale. So refresh the treeview with either F5 or right click an item in >> the treeview click refresh to rebuild the list. >> > > I don't think PgAdmin will display indexes created by primary keys, > only if indisprimary is false. > pgAdmin doesn't display indexes for primary keys and unique constraints. These objects are already displayed in the constraints nodes. The fact that they use an index to enforce the constraints is an implementation detail. -- Guillaume http://www.postgresql.fr http://dalibo.com