launchpad-reviewers team mailing list archive
-
launchpad-reviewers team
-
Mailing list archive
-
Message #04880
[Merge] lp:~stub/launchpad/pending-db-changes into lp:launchpad/db-devel
Stuart Bishop has proposed merging lp:~stub/launchpad/pending-db-changes into lp:launchpad/db-devel.
Requested reviews:
Launchpad code reviewers (launchpad-reviewers)
Related bugs:
Bug #796140 in Launchpad itself: "Disk utilization stats gatherer not ignoring temporary tables"
https://bugs.launchpad.net/launchpad/+bug/796140
For more details, see:
https://code.launchpad.net/~stub/launchpad/pending-db-changes/+merge/74170
= Summary =
A CREATE INDEX CONCURRENTLY got inturrupted on production, and we can't drop this index on the busy live system.
== Proposed fix ==
DB patch to drop the index next downtime update.
--
https://code.launchpad.net/~stub/launchpad/pending-db-changes/+merge/74170
Your team Launchpad code reviewers is requested to review the proposed merge of lp:~stub/launchpad/pending-db-changes into lp:launchpad/db-devel.
=== added file 'database/schema/patch-2208-78-2.sql'
--- database/schema/patch-2208-78-2.sql 1970-01-01 00:00:00 +0000
+++ database/schema/patch-2208-78-2.sql 2011-09-06 07:52:00 +0000
@@ -0,0 +1,5 @@
+SET client_min_messages = ERROR;
+
+DROP INDEX IF EXISTS temp_previewdiff;
+
+INSERT INTO LaunchpadDatabaseRevision VALUES (2208, 78, 2);