--- ./sidecontent.install	2006-10-22 00:05:50.000000000 +0200
+++ ./sidecontent.install_trs	2007-01-27 01:39:23.000000000 +0100
@@ -25,9 +25,13 @@
       break;
 
     case 'pgsql':
-      
-      // anyone want to fill this in?
-      return drupal_set_message(t('PGSQL database installation not available, please look at sidecontent.install file and install manually.'));
+       $success = db_query("CREATE TABLE {sidecontent} (
+                        nid int4 NOT NULL default '0',
+                        format int4 NOT NULL default '0',
+                        sidetitle varchar(128) NOT NULL default '',
+                        sidecontent text NOT NULL,
+                        PRIMARY KEY  (nid) 
+                         );");
       break;
   }
   
@@ -39,7 +43,9 @@
   }
   
   return;
-}
+}
+
+/*** Implementation of hook_uninstall().*/function sidecontent_uninstall() {  db_query('DROP TABLE {sidecontent}');  variable_del('sidecontent_title');  variable_del('sidecontent_print');  variable_del('sidecontent_show_input_format');  variable_del('sidecontent_show_in_group');  variable_del('sidecontent_group_description');}
 
 /*
  * update module for UTF.
@@ -62,8 +68,8 @@
       $ret[] = update_sql("ALTER  TABLE {sidecontent}  ADD  PRIMARY  KEY (  `nid`  )");      
       break;
     case 'pgsql':
-      // anyone want to fill this in?
-      return drupal_set_message(t('PGSQL database installation not available, please look at sidecontent.install file and install manually.'));
+      $ret[] = update_sql("ALTER TABLE {sidecontent} ADD COLUMN sidetitle varchar(128) NOT NULL default ''");
+      $ret[] = update_sql("ALTER  TABLE {sidecontent}  ADD  PRIMARY  KEY (  nid  )");      
       break;
   }
   return $ret;
@@ -93,4 +99,4 @@
 }
 
 
-?>
\ No newline at end of file
+?>
