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/

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
       choose an index scan if your joining column's datatypes do not
       match

Reply via email to