After installing postgresql, I tried to use the python interface pgdb. That module requires the DateTime module, which was not installed.
does CPAN work for fetching the library?
As far as I know, CPAN only applies to perl. This bug is about the python third-party DateTime module that the python pgdb module requires. The pgdb module was installed with PostgreSQL but the DateTime module was not. Furthermore, this module does not appear to be part of any of the packages available using the gentoo 'emerge' package installer. To fix the problem, I downloaded the module directly, and added it to /usr/lib/python2.2/site-packages along with a .pth file.
egenix-mx-base is the package you want... I've added the dep to the ebuilds.