Index: database.pgsql =================================================================== RCS file: /cvs/drupal/drupal/database/database.pgsql,v retrieving revision 1.168 diff -u -p -F^f -r1.168 database.pgsql --- database.pgsql 30 Jan 2006 10:48:37 -0000 1.168 +++ database.pgsql 12 Feb 2006 06:41:14 -0000 @@ -599,7 +599,7 @@ CREATE TABLE search_total ( -- CREATE TABLE sessions ( - uid integer not null, + uid integer NOT NULL default 0, sid varchar(32) NOT NULL default '', hostname varchar(128) NOT NULL default '', timestamp integer NOT NULL default '0', Index: updates.inc =================================================================== RCS file: /cvs/drupal/drupal/database/updates.inc,v retrieving revision 1.195 diff -u -p -F^f -r1.195 updates.inc --- updates.inc 12 Feb 2006 05:34:34 -0000 1.195 +++ updates.inc 12 Feb 2006 06:41:14 -0000 @@ -1616,3 +1616,11 @@ function system_update_172() { } return array('#finished' => $_SESSION['system_update_172'] / $_SESSION['system_update_172_max']); } + +function system_update_173() { + $ret = array(); + if ($GLOBALS['db_type'] == 'pgsql') { + $ret[] = update_sql('ALTER TABLE {sessions} ALTER COLUMN uid SET DEFAULT 0'); + } + return $ret; +}