This is not actually a patch but the sql code to add support for postgresql. Please note that I haven't done any serious testing on it but it works for now.
Create tables and indexes
php code dimdim_upgrade function (doesn't do anything)
Logged In: YES
File Added: postgres7.php