SyntaxFix
Write A Post
Hire A Developer
Questions
psql's inline help:
psql
\h ALTER TABLE
Also documented in the postgres docs (an excellent resource, plus easy to read, too).
ALTER TABLE tablename ADD CONSTRAINT constraintname UNIQUE (columns);