Re: Another unexpected behaviour

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Another unexpected behaviour
Дата
Msg-id 12523.1311177109@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Another unexpected behaviour  (Samuel Hwang <samuel@replicon.com>)
Ответы Re: Another unexpected behaviour  (Shianmiin <Shianmiin@gmail.com>)
Список pgsql-general
Samuel Hwang <samuel@replicon.com> writes:
> Thanks. But I am not looking for how to avoid the problem at this
> moment,
> I am more interested in why PostgreSQL is designed to work this way.

Performance --- it's significantly more expensive to do a deferred
uniqueness check, since you have to visit the index a second time.
Also backwards compatibility with older versions of PG, which did
not have support for deferred uniqueness checks at all.

            regards, tom lane

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

Предыдущее
От: Samuel Hwang
Дата:
Сообщение: Re: Another unexpected behaviour
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: Another unexpected behaviour