I\'m guessing this is a pretty basic question, but I can\'t figure out why:
import psycopg2 psycopg2.connect(\"postgresql://postgres:postgres@localhost/postgres\
The connection string passed to psycopg2.connect is not parsed by psycopg2: it is passed verbatim to libpq. Support for connection URIs was added in PostgreSQL 9.2.
psycopg2.connect
psycopg2
libpq