Closed Bug 1427143 Opened 7 years ago Closed 7 years ago

drop all crash reports from postgres

Categories

(Socorro :: Data request, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: lonnen, Assigned: willkg)

References

Details

Attachments

(2 files)

Per bug 1427117, we need to delete all crash reports collected before 2017-12-24. This bug covers removing the subset of information we copy into postgres. This means the reports table, and reports-clean. stage first, then prod
Blocks: 1427144
I'm going to drop all the tables older than 20171225 for any tables of the form tablename_YYYYMMDD. For 20171225 tables, we need those since that's this week, so I'll truncate them. I'll leave the 2018 tables since those are in the future and have no data in them. I didn't realize the scope of this (900+ tables on -stage), so I'm going to do psql \d -> .sql file, vim it a bit to remove the tables we don't want to truncate/drop, add the SQL commands, then run it in psql.
Attached file 1427143_stage.sql
File with all the DROP and TRUNCATE statements.
Blocks: 1427146
Comment on attachment 8938908 [details] 1427143_stage.sql It's a long, machine generated list. The output has a consistency, but I didn't check line-by-line to ensure all the dates match. Truncate at the end checks out too.
Attachment #8938908 - Flags: review+
Attached file 1427143_prod.sql
DROP and TRUNCATE statements to run against -prod.
I've run both scripts in their respective environments. I think we're good here.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
no need for this to remain confidential
Group: mozilla-employee-confidential
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: