Starting from Postgres 8.0, ALTER COLUMN support has become available.
This patch makes use of that feature in AlterColumnSQL() under "datadict-postgres.inc.php".
Patch for ALTER COLUMN support with postgres 8
Patch for ALTER COLUMN support with postgres 8