Re: Best way to use indexes for partial match at

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Scott Marlowe <smarlowe(at)g2switchworks(dot)com>
Cc: Andrus <eetasoft(at)online(dot)ee>, pgsql-general(at)postgresql(dot)org
Subject: Re: Best way to use indexes for partial match at
Date: 2005-11-10 17:27:49
Message-ID: 200511101827.49606.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Scott Marlowe wrote:
> Ya know, this brings up an interesting question, would it be feasible
> to allow for a function of somekind to be applied as an argument to a
> primary key declaration?

You would have to guarantee somehow that the function is a one-to-one
mapping, in order not to destroy the integrity of the primary key
constraint. I cannot think of any useful functions that fulfill this
criterion.

> It would certainly be useful for character
> type pks in non-C locales.

I don't see how.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Peter Eisentraut 2005-11-10 17:29:39 Re: Best way to use indexes for partial match at
Previous Message Michael Fuhr 2005-11-10 17:24:06 Re: Where Statement