Prerequisites

If you want to try the examples in this chapter, you'll probably need to install a few extra pieces of software. You will obviously need Python and PostgreSQL. You'll also need the PyGreSQL interface. The easiest way to build PyGreSQL is to download it, unpack it, and run the included setup.py program. If you're using Linux (or Unix):

$ cd /usr/local/src
$ wget ftp://ftp.pygresql.org/pub/distrib/PyGreSQL.tgz
Length: 45,824 (unauthoritative)

100%[====================================>] 45,824        32.75K/s

17:12:32 (32.65 KB/s) - 'PyGreSQL.tgz' saved [45,824]

$ tar -zxvf PyGreSQL.tgz
$ cd PyGreSQL-version
					

Make sure that pg_config is in your $PATH search path before you run the next command. The setup.py program invokes pg_config to find ...

Get PostgreSQL, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.