I have a table, with the columns login, lineno, line.
Each login can have 3 lineno and 3 lines, each lineno has to be unique if the login is the same.
I've tried:
create unique index unique_Lineno on rs_line (Lineno) where login=login;
It doesn't work. Can anyone please give me some help?
I've read the http://www.postgresql.org/docs/8.0/static/indexes-unique.html but there is no sample.