title: Loading a postgresql table into pandas dataframe with sqlalchemy hangs forever
body: <p>I'm trying to pull a table from a database into a pandas dataframe, but my code is hanging on the command to do so and I can't figure out why.</p>
  
  <p>I've got:</p>
  
  <pre><code>import psycopg2
  import pandas
  import sqlalchemy
  from pandas import DataFrame
  from sqlalchemy import create_engine
  
  def connect():
      try:
          engine = sqlalchemy.create_engine('postgresql+psycopg2://user:password@host/database')
          df = pandas.read_sql_table('mytable',engine,schema='mySchema')
          print("The dataframe loaded")
      except(Exception, psycopg2.DatabaseError) as error:
          print(error)    
  
  if __name__ == '__main__':
      connect()
  </code></pre>
  
  <p>but when I run my code, it never makes it past the <code>df=</code> line. No errors or anything, just never prints and keeps running. I suspect this is some issue with the engine maybe not being set up properly?</p>