Re: Are Indices automatically generated for primary keys?

Поиск
Список
Период
Сортировка
От Guillaume Lelarge
Тема Re: Are Indices automatically generated for primary keys?
Дата
Msg-id 4C74BF33.3080901@lelarge.info
обсуждение исходный текст
Ответ на Re: Are Indices automatically generated for primary keys?  (Thom Brown <thom@linux.com>)
Список pgsql-performance
Le 18/08/2010 17:23, Thom Brown a écrit :
> On 18 August 2010 17:06, Justin Graf <justin@magwerks.com> 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

В списке pgsql-performance по дате отправления:

Предыдущее
От: Jann Röder
Дата:
Сообщение: Re: Inefficient query plan
Следующее
От: Bob Lunney
Дата:
Сообщение: Re: Triggers or code?