Can I use md5 authentication with psycopg2?
问题 After two hours of reading documentation, source code and help-threads, I'm giving up. I can't get psycopg2 to authenticate with a md5-string. According to this thread I don't have to anything besides enabling md5-auth in pg_hba.conf . This is my current pg_hba.conf : # TYPE DATABASE USER CIDR-ADDRESS METHOD local all all md5 host all all 127.0.0.1/32 md5 host all all ::1/128 md5 host all all 0.0.0.0/0 md5 And I use psycopg2 like this: psycopg2.connect(host='localhost', port=5433, user='me',