title: psycopg - Get formatted sql instead of executing
body: <p>I have a piece of Python code, that interacts with a PostgreSQL database via psycopg. </p>
  
  <p>All literature warns against doing sql formatting by oneself, and recommends letting the driver do it. E.g.:</p>
  
  <pre><code>cur.execute('select name, age from people where name = %s;', ('ann',) )
  </code></pre>
  
  <p>The driver then formats the sql string. Let's say I don't want to execute anything, but I just want the fully formatted sql string. Is there any functionality for getting this formatted sql in the psycopg module?</p>