Re: query plan ignoring check constraints

From: "John Hansen" <john(at)geeknet(dot)com(dot)au>
To: "Bruno Wolff III" <bruno(at)wolff(dot)to>
Cc: "Simon Riggs" <simon(at)2ndquadrant(dot)com>, "Alvaro Herrera" <alvherre(at)surnet(dot)cl>, "Josh Berkus" <josh(at)agliodbs(dot)com>, <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: query plan ignoring check constraints
Date: 2005-06-21 12:11:25
Message-ID: 5066E5A966339E42AA04BA10BA706AE50A9365@rodrick.geeknet.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Bruno Wolff III [mailto:bruno(at)wolff(dot)to] Wrote:

> You only want to use partial indexes when they don't cover
> the whole table. They make sense to enforce uniqueness of a
> column under some condition and when you can save significant
> space (becuase the condition is only satisfied for a small
> fraction of rows).

Yes, I know that,.

I misunderstood the original post as a request for queries NOT to use
indexes where it doesn't match the table contents.

.. John

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruno Wolff III 2005-06-21 12:26:31 Re: query plan ignoring check constraints
Previous Message Bruno Wolff III 2005-06-21 12:04:30 Re: query plan ignoring check constraints