Re: Partial Indices vs. mixing columns and functions - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: Partial Indices vs. mixing columns and functions
Date
Msg-id 20010711183207.A2838@svana.org
Whole thread Raw
In response to Partial Indices vs. mixing columns and functions  (Mike Mascari <mascarm@mascari.com>)
List pgsql-general
On Wed, Jul 11, 2001 at 04:09:51AM -0400, Mike Mascari wrote:
> Hello,
>
> I have created table/view pairs like:

[snip]

Yes, creating a unique partial index should be possible and will do what you
want I think, (I couldn't totally follow what you meant).

However, partial indicies will not support the IS NULL predicates, for the
same reason that IS NULL cannot use an index for lookups.

I'd love to fix that but that's going to be hard (or rather, I havn't
thought of an easy way to do it :).

Maybe someone has a better solution.

--
Martijn van Oosterhout <kleptog@svana.org>
http://svana.org/kleptog/
> It would be nice if someone came up with a certification system that
> actually separated those who can barely regurgitate what they crammed over
> the last few weeks from those who command secret ninja networking powers.

pgsql-general by date:

Previous
From: Mike Mascari
Date:
Subject: Partial Indices vs. mixing columns and functions
Next
From: Mike Mascari
Date:
Subject: Re: Partial Indices vs. mixing columns and functions