Re: Partial indexes - Mailing list pgsql-general

From Florian G. Pflug
Subject Re: Partial indexes
Date
Msg-id 4445979F.7010707@phlo.org
Whole thread Raw
In response to Re: Partial indexes  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Partial indexes  (elein <elein@varlena.com>)
List 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 by date:

Previous
From: Teodor Sigaev
Date:
Subject: Re: Bulk inserts within a Perl script?
Next
From: Christopher Browne
Date:
Subject: Re: PostgreSQL and the OCFS2 filesystem