I would like to set up a table in PostgreSQL such that two columns together must be unique. There can be multiple values of either value, so long as there are not two that s
Seems like regular UNIQUE CONSTRAINT :)
CREATE TABLE example ( a integer, b integer, c integer, UNIQUE (a, c));
More here