I've got a script here that does a mysql > pgsql which you should be able to work with for creating your conversion.
The script isn't complete yet, but it's working. The only incomplete parts are blobs, sets, and rules for updating a timestamp on record update if no value is specified, but if you know the sql for this, please share.
http://db.etree.org/wddx/mysql-psql.phps
This script requires phplib but can be modified to use some other library I'm sure.
Tom