This article describes how to configure TYPO3 to use a PostgreSQL database instead of MySQL.
The first section is described for Debian Lenny.
You can donate to support my work on DBAL. It took (and still takes) lots of time to make it work as it does nowadays. Thanks in advance!