Re: 7.3.1 New install, large queries are slow

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: 7.3.1 New install, large queries are slow
Дата
Msg-id 20030116225602.G17408-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на Re: 7.3.1 New install, large queries are slow  ("Roman Fail" <rfail@posportal.com>)
Список pgsql-performance
On Thu, 16 Jan 2003, Roman Fail wrote:

> > Stephan Szabo wrote:
> > Also you have two indexes on batchdetailid right now (primary key
> > also creates one) which added to the confusion.
>
> The 7.3.1 docs for CREATE TABLE don't mention anything about automatic
> index creation for a PRIMARY KEY.  I didn't see any PK indexes via
> pgAdminII, so I read this line from the docs and decided to create
> them separately.
>     "Technically, PRIMARY KEY is merely a combination of UNIQUE and NOT NULL"

Right, but the implementation of UNIQUE constraints in postgresql right
now is through a unique index.  That's not necessarily a guarantee for
the future, but for right now you can rely on it.


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: 7.3.1 New install, large queries are slow
Следующее
От: Timur Irmatov
Дата:
Сообщение: index usage