title: How to use composite unique trigger in postgres
body: <p>how to use composite Unique using trigger I have one column user_id and service_id i want to restrict duplicate records in user_id according to service_id means ie for service_id=1  all records should be unique in user_id 
  all by trigger </p>