--- SMW_SQLStore3_SetupHandlers_1.php	2013-11-26 15:13:20.000000000 +0000
+++ SMW_SQLStore3_SetupHandlers.php	2013-11-28 02:07:49.867204997 +0000
@@ -65,7 +65,7 @@
 			't' => SMWSQLHelpers::getStandardDBType( 'title' ),
 			'l' => SMWSQLHelpers::getStandardDBType( 'blob' ),
 			'f' => ( $wgDBtype == 'postgres' ? 'DOUBLE PRECISION' : 'DOUBLE' ),
-			'i' => ( $wgDBtype == 'postgres' ? 'INTEGER' : 'INT(8)' ),
+			'i' => ( $wgDBtype == 'postgres' ? 'bigint' : 'INT(8)' ),
 			'j' => ( $wgDBtype == 'postgres' || $wgDBtype == 'sqlite' ? 'INTEGER' : 'INT(8) UNSIGNED' ),
 			'p' => SMWSQLHelpers::getStandardDBType( 'id' ),
 			'n' => SMWSQLHelpers::getStandardDBType( 'namespace' ),
@@ -129,7 +129,7 @@
 			SMWSQLStore3::PROPERTY_STATISTICS_TABLE,
 			array(
 				'p_id' => $dbtypes['p'],
-				'usage_count' => $dbtypes['j']
+				'usage_count' => $dbtypes['i']
 			),
 			$db,
 			$reportTo
