Re: How to create index on only some of the rows

From: Andrew Sullivan <ajs(at)crankycanuck(dot)ca>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: How to create index on only some of the rows
Date: 2011-02-07 15:09:29
Message-ID: 20110207150929.GB3438@shinkuro.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Feb 07, 2011 at 03:00:54PM +0100, A B wrote:
> So until this changes, can you just add a boolean field to tell if the
> column should be used in the index, and then run "create index ....
> where use_in_index = true" or are there other (better?) ways of doing
> this?

What are the criteria for inclusion in the index? Those would be the
criteria you put in your WHERE clause.

A

--
Andrew Sullivan
ajs(at)crankycanuck(dot)ca

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jens Sauer 2011-02-07 15:50:38 fulltext search and hunspell
Previous Message Nicolas Grilly 2011-02-07 14:55:24 Re: Why "copy ... from stdio" does not return immediately when reading invalid data?