Re: Best way to use indexes for partial match at

From: "Andrus" <eetasoft(at)online(dot)ee>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Best way to use indexes for partial match at
Date: 2005-11-10 16:43:17
Message-ID: dkvtqg$2dh6$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> Note that if you don't use the pk in unnamed joins (i.e. you always
> identify the field you're keying off of) then the primary key is
> redundant and not needed, and you could just create the table without it
> and then create the unique index.

Thank you.
Can Postgres use index

CREATE UNIQUE INDEX foo_bar ON foo(bar bpchar_pattern_ops);

in usual WHERE expressions just like regular index ?

I.e can

SELECT * FROM foo WHERE bar='123'

use index foo_bar ?

Andrus.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message juleni 2005-11-10 17:01:22 Re: TIMESTAMP vs TIMESTAMP WITHOUT TIME ZONE
Previous Message Tom Lane 2005-11-10 16:28:17 Re: TIMESTAMP vs TIMESTAMP WITHOUT TIME ZONE