title: Primary keys with Apache Spark
body: <p>I am having a JDBC connection with Apache Spark and PostgreSQL and I want to insert some data into my database. When I use <code>append</code> mode I need to specify <code>id</code> for each <code>DataFrame.Row</code>. Is there any way for Spark to create primary keys?</p>