title: PyGreSQL Run SQL interactively
body: <p>I have a GreenPlum database, and I'm trying to create several external tables.   </p>
  
  <p>I'm using the <code>PyGreSQL</code> package to interface with the database. </p>
  
  <p>However, I can't escape <code>\i</code> (or <code>\dt</code>, <code>\du</code>, <code>\dv</code>).  </p>
  
  <p><code>db.query("\i h1/ext/eng/ext_eng" + i + ".sql")</code></p>
  
  <p><code>pg.ProgrammingError: ERROR: syntax error at or near "\"</code>   </p>
  
  <p>I've tried <code>"\\i"</code>, <code>" '\i' "</code> and other combinations.  </p>