title: PostgreSQL Check or trigger
body: <p>I have a table called products and one of columns is called names.</p>
  
  <p>When I insert a new product, I want to check if name of the new product already exists in names and then show an error message.</p>
  
  <p>Anyone have any ideas? </p>