--- userpoints_ubercart.orig	2008-02-28 23:07:24.000000000 -0500
+++ userpoints_ubercart.install	2008-02-28 23:48:20.000000000 -0500
@@ -24,6 +24,24 @@ function userpoints_ubercart_install() {
           PRIMARY KEY (updlog_id)
         ) /*!40100 DEFAULT CHARACTER SET utf8 */;");
       break;
+   case 'pgsql':
+    db_query("CREATE TABLE {uc_uplog} (
+         uplog_id   serial,
+         uid   INT NOT NULL DEFAULT '0',
+         oid   INT NOT NULL DEFAULT '0',
+         points   INT NOT NULL DEFAULT '0',
+         referrer   SMALLINT NOT NULL DEFAULT '0',
+         discount   INT NOT NULL DEFAULT '0',
+         PRIMARY KEY (uplog_id)
+         )");
+    db_query("CREATE TABLE {uc_updiscounts} (
+         updlog_id   serial,
+         uid   INT NOT NULL DEFAULT '0',
+         oid   INT NOT NULL DEFAULT '0',
+         ptamt   DECIMAL(10,2) NOT NULL DEFAULT '0',
+         PRIMARY KEY (updlog_id)
+       erpoints_ubercart.install");
+     break;
   }
 }
 
