PostgreSQL (7.x+)

PostgreSQL is an free object-relational database, which supports a large part of SQL-99. It is under continuous development and each release implements more of the SQL standard, to the extent that it is now probably more compliant than most commercial databases. It also supports some object-oriented features. PostgreSQL is a full-featured, multi-user RDBMS that scales well from a few users to an entire organization.

PostgreSQL is the primary database used by GNUe developers.

To utilize PostgreSQL within GNUe, you must use one of the following python drivers:

psycopg2

From the Psycopg2 website: psycopg 2 is an almost complete rewrite of psycopg. It still supports all the features of psycopg but add real adaptation for Python to PostgreSQL type conversions, asynchronous queries, support for the Python built-in datetime module and the new (Python 2.4) Decimal type.

psycopg 2 is now the stable branch (psycopg 1 support has been discontinued.)

Written by initd.org volunteers.

Home Page: http://initd.org/projects/psycopg2

Supported Platforms:

Connection Properties

The following properties can be specified in your connections.conf file:

Examples

The following is an example of a connection.conf entry:

  [myconn]
  provider=psycopg2       # Use the psycopg2 adapter
  host=localhost          # The hostname/IP of the postgresql host
  dbname=mydb             # The name of the pg database

Notes

  1. Available in Debian as: "apt-get install python-psycopg2".
  2. Windows installer available at: http://www.stickpeople.com/projects/python/win-psycopg/index.html .

psycopg

From the Psycopg website: "It was written from scratch with the aim of being very small and fast, and stable as a rock." Written by initd.org volunteers.

Home Page: http://initd.org/software/initd/psycopg/

Supported Platforms:

Connection Properties

The following properties can be specified in your connections.conf file:

Examples

The following is an example of a connection.conf entry:

  [myconn]
  provider=psycopg        # Use the psycopg adapter
  host=localhost          # The hostname/IP of the postgresql host
  dbname=mydb             # The name of the pg database

Notes

  1. This is the driver of choice for PostgreSQL.
  2. Available in Debian as: "apt-get install python-psycopg".
  3. Windows installer available at: http://stickpeople.com/projects/python/win-psycopg/ .
  4. This driver is fully functional with no known serious problems.

PyGreSQL

PyGreSQL is the PostgreSQL-Python driver available via PostgreSQL's CVS tree. It is compliant to Python's DB-API 2.0.

Home Page: http://druid.net/pygresql/

Supported Platforms:

Connection Properties

The following properties can be specified in your connections.conf file:

Examples

The following is an example of a connection.conf entry:

  [myconn]
  provider=pygresql       # Use the pygresql adapter
  host=localhost          # The hostname/IP of the postgresql host
  dbname=mydb             # The name of the pg database

Notes

  1. The developers of GNUe have had mixed results with the PygreSQL driver and generally recommend one of the others.

pyPgSQL

Written by Billy Allie, pyPgSQL is a database interface for PostgreSQL 7.x.

Home Page: http://pypgsql.sf.net/

Supported Platforms:

Platforms Tested:

Connection Properties

The following properties can be specified in your connections.conf file:

Examples

The following is an example of a connection.conf entry:

  [myconn]
  provider=pypgsql        # Use the pypgsql adapter
  host=localhost          # The hostname/IP of the postgresql host
  dbname=mydb             # The name of the pg database

Notes

  1. pyPgSQL is available in Debian as python-pgsql.
  2. This driver is fully functional with no known serious problems.

GNUe Home

Developer Tools