With PostgreSQL 8.3 as min requirement in Moodle 2.0, some oddities from previous versions can be avoided:
1) Use of temp columns each time one column is altered. PG 8.x supports direct changes.
2) default clause is allowed when adding fields.
Also, properly check XMLDB own tests and DB functional tests, related with these changes.