=== modified file 'sites/all/modules/drupalorg/drupalorg/drupalorg.install'
--- sites/all/modules/drupalorg/drupalorg/drupalorg.install	2011-05-12 03:13:30 +0000
+++ sites/all/modules/drupalorg/drupalorg/drupalorg.install	2011-07-07 02:14:14 +0000
@@ -99,6 +99,28 @@
       'primary key' => array('cid'),
     ),
   );
+
+  // Drupal.org runs the patch at http://drupal.org/node/109037 to move the
+  // users.access column into its own table.
+  $schema['users_access'] = array(
+    'description' => 'A separate table for the users.access column, for performance.',
+    'fields' => array(
+      'uid' => array(
+        'description' => 'The {users}.uid of the user.',
+	'type' => 'int',
+	'unsigned' => TRUE,
+	'not null' => TRUE,
+      ),
+      'access' => array(
+        'description' => "Timestamp of user's last access.",
+	'type' => 'int',
+	'unsigned' => TRUE,
+	'not null' => TRUE,
+	'default' => 0,
+      ),
+    ),
+    'primary key' => array('uid'),
+  );
 }
 
 /**
@@ -110,6 +132,9 @@
 function drupalorg_install() {
   drupal_install_schema('drupalorg');
   db_query("UPDATE {system} SET weight = 5 WHERE name = 'drupalorg'");
+
+  // Populate users_access table.
+  db_query('INSERT INTO {users_access} SELECT uid, access FROM {users}');
 }
 
 /**
@@ -792,6 +817,42 @@
 }
 
 /**
+ * Add users.access table if it doesn't already exist.
+ */
+function drupalorg_update_6602() {
+  $ret = array();
+
+  if (!db_table_exists('users_access')) {
+    $schema['users_access'] = array(
+      'description' => 'A separate table for the users.access column, for performance.',
+      'fields' => array(
+        'uid' => array(
+          'description' => 'The {users}.uid of the user.',
+          'type' => 'int',
+          'unsigned' => TRUE,
+          'not null' => TRUE,
+        ),
+        'access' => array(
+          'description' => "Timestamp of user's last access.",
+          'type' => 'int',
+          'unsigned' => TRUE,
+          'not null' => TRUE,
+          'default' => 0,
+        ),
+      ),
+      'primary key' => array('uid'),
+    );
+
+    db_create_table($ret, 'users_access', $schema['users_access']);
+
+    // Populate table with values from users.access column.
+    db_query('INSERT INTO {users_access} SELECT uid, access FROM {users}');
+  }
+
+  return $ret;
+}
+
+/**
  * Utility function to add permissions to certain user roles.
  */
 function _drupalorg_add_permissions($permissions) {

