Re: Partial indexes

Поиск
Список
Период
Сортировка
От Florian G. Pflug
Тема Re: Partial indexes
Дата
Msg-id 4445979F.7010707@phlo.org
обсуждение исходный текст
Ответ на Re: Partial indexes  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Partial indexes  (elein <elein@varlena.com>)
Список pgsql-general
Tom Lane wrote:
> elein <elein@varlena.com> writes:
>> I think I want to:
>>     create unique index pk on table tbl (keyp1, keyp2);
don't you want
create unique inde pk on table tbl (keyp1, keyp2) where keyp3 is null
here?

>>     create unique index range on table tbl (keyp1, keyp2, keyp3) where keyp3 is not null;
>
>> Are these indexes redundant given uniqueness requirement and the type of queries
>> that will be run against the table?

greetings, Florian Pflug

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

Предыдущее
От: Teodor Sigaev
Дата:
Сообщение: Re: Bulk inserts within a Perl script?
Следующее
От: Christopher Browne
Дата:
Сообщение: Re: PostgreSQL and the OCFS2 filesystem