--- /opt/build/drupalmods47/administration/done/inactive_user/inactive_user.install	2006-05-10 07:19:42.000000000 +0800
+++ inactive_user.install	2006-10-11 18:27:11.010397508 +0800
@@ -3,7 +3,7 @@
   switch ($GLOBALS['db_type']) {
     case 'mysql':
     case 'mysqli':
-      db_query("CREATE TABLE {inactive_users} (
+      $result = db_query("CREATE TABLE {inactive_users} (
         uid int(1) unsigned NOT NULL default '0',
         notified_admin int(1) unsigned NOT NULL default '0',
         notified_user int(1) unsigned NOT NULL default '0',
@@ -15,6 +15,24 @@
         PRIMARY KEY (uid)
         ) /*!40100 DEFAULT CHARACTER SET utf8 */;");
       break;
+    case 'pgsql':
+      $result = db_query("CREATE TABLE {inactive_users} (
+        uid integer NOT NULL default '0' PRIMARY KEY,
+        notified_admin boolean NOT NULL default '0',
+        notified_user boolean NOT NULL default '0',
+        warned_user_block_timestamp integer NOT NULL default '0',
+        notified_user_block boolean NOT NULL default '0',
+        notified_admin_block boolean NOT NULL default '0',
+        warned_user_delete_timestamp integer NOT NULL default '0',
+        protected boolean NOT NULL default '0'
+        );");
+      break;
+  }
+
+  if ($result) {
+    drupal_set_message(t("inactive_users module database tables created successfully."));  
+  } else {
+    drupal_set_message(t("inactive_users module database table creation failure. Please view the inactive_users module folder and read the README.txt"), 'error');    
   }
 }
 
