--- i18nstrings.install.org	2007-10-25 20:57:51.000000000 +0200
+++ i18nstrings.install	2008-06-11 10:27:21.000000000 +0200
@@ -2,8 +2,13 @@
 // $Id: i18nstrings.install,v 1.2 2007/10/25 18:57:51 jareyero Exp $
 
 function i18nstrings_install() {
+  global $db_type;
   // Create database tables
   drupal_install_schema('i18nstrings');
+  if ($db_type=='pgsql') {
+    db_query("ALTER TABLE {i18n_strings} SET WITHOUT OIDS;");
+  }
+    db_query("ALTER TABLE {i18n_strings} RENAME oid_rename  TO oid;");
   // Set module weight for it to run after core modules
   db_query("UPDATE {system} SET weight = 10 WHERE name = 'i18nstrings' AND type = 'module'");
 }
@@ -26,7 +31,7 @@ function i18nstrings_schema() {
         'default' => 0,
         'description' => t('Source string ID. References {locales_source}.lid.'),
       ),
-      'oid' => array(
+      'oid_rename' => array(
         'type' => 'int',
         'not null' => TRUE,
         'default' => 0,
