Create unique index for a view in PostgreSQL