--- schema_pgsql.inc.orig	2009-02-28 18:11:53.000000000 +0100
+++ schema_pgsql.inc	2009-02-28 18:16:19.000000000 +0100
@@ -92,6 +92,9 @@ function schema_pgsql_inspect($tbl_name 
         // numeric, use intval() or floatval() to extract the value as a
         // numeric type.
 
+        // The value is actually an expression, and may be stored with parentheses
+        $col['default'] = preg_replace('/^\((.*)\)$/', '\1', $col['default']);
+
         // more pgsql-specific stuff
         if (strpos($col['default'], 'nextval(\'') !== FALSE &&
           $def_type == 'regclass)') {
