Re: Difference between PRIMARY KEY index and UNIQUE-NOT NULL index

Поиск
Список
Период
Сортировка
От Vincenzo Romano
Тема Re: Difference between PRIMARY KEY index and UNIQUE-NOT NULL index
Дата
Msg-id 200707221931.09970.vincenzo.romano@gmail.com
обсуждение исходный текст
Ответ на Re: Difference between PRIMARY KEY index and UNIQUE-NOT NULL index  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Difference between PRIMARY KEY index and UNIQUE-NOT NULL index  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Difference between PRIMARY KEY index and UNIQUE-NOT NULL index  ("Dawid Kuroczko" <qnex42@gmail.com>)
Список pgsql-general
On Sunday 22 July 2007 19:20:08 Tom Lane wrote:
> Vincenzo Romano <vincenzo.romano@gmail.com> writes:
> > In the original setup, the "UNIQUE" constraint had been dropped
> > *before* doing the tests. So the "slow" case is without the
> > UNIQUE constraint but with an index. The NOT NULL was instead
> > there.
>
> With what index, pray tell?
>
>             regards, tom lane

Sorry for the incomplete sentence.
Read it as:

In the original setup, the "UNIQUE" constraint had been dropped
*before* doing the tests. So the "slow" case is without the
UNIQUE constraint but with an index on NOT NULL fields.

The "fast" case was with the primary key on the very same fields
in the very same order.

--
Vincenzo Romano
--
Maybe Computer will never become as intelligent as Humans.
For sure they won't ever become so stupid. [VR-1988]

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

Предыдущее
От: "Sibte Abbas"
Дата:
Сообщение: Re: Debugging postgresql source on gdb
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Difference between PRIMARY KEY index and UNIQUE-NOT NULL index