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/