Re: Best way to use indexes for partial match at - Mailing list pgsql-general

From Andrus
Subject Re: Best way to use indexes for partial match at
Date
Msg-id dkvtqg$2dh6$1@news.hub.org
Whole thread Raw
In response to Best way to use indexes for partial match at beginning  ("Andrus Moor" <eetasoft@online.ee>)
Responses Re: Best way to use indexes for partial match at  (Peter Eisentraut <peter_e@gmx.net>)
List 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.



pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: TIMESTAMP vs TIMESTAMP WITHOUT TIME ZONE
Next
From: juleni@livetrade.cz
Date:
Subject: Re: TIMESTAMP vs TIMESTAMP WITHOUT TIME ZONE