Janning Vygen wrote:
> Of course i can use an index like this:
>
> CREATE TABLE members (
> nickname text NOT NULL,
> );
> CREATE UNIQUE INDEX ix_name ON test (lower(name));
>
> but the key isn't marked as primary then.
>
> So here is my question: How can i define a functional index to be
> used with a primary key (using postgreSQL 7.4.3)?
You can't. The primary key must be an actual data value. You can
define a more restrictive unique constraint in addition.
--
Peter Eisentraut
http://developer.postgresql.org/~petere/