ansible/ansible — pull request #876 by elventear (2012-08-14 22:17:30+00:00)
Title: Changes to postgresql to support defaults settings and older psycopg2

For older versions of psycopg2, to use the default postgres connection values, the keywords must be omitted, changed the behavior of the module, to omit keywords when the value is empty (defaulting to postgres default connection values).

Also, psycopg2 versions older than 2.4.2, do use different semantics instead of autocommit. Support that.

These changes are to support RHEL5+EPEL, which provides an older psycopg2.