title: psycopg2 equivalent of mysqldb.escape_string?
body: <p>I'm passing some values into a postgres character field using psycopg2 in Python. Some of the string values contain periods, slashes, quotes etc.</p>
  
  <p>With MySQL I'd just escape the string with</p>
  
  <pre><code>MySQLdb.escape_string(my_string)
  </code></pre>
  
  <p>Is there an equivalent for psycopg2?</p>