Closed
Bug 1427143
Opened 7 years ago
Closed 7 years ago
drop all crash reports from postgres
Categories
(Socorro :: Data request, task)
Socorro
Data request
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
Assignee | ||
Comment 1•7 years ago
|
||
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.
Assignee | ||
Comment 2•7 years ago
|
||
File with all the DROP and TRUNCATE statements.
Reporter | ||
Comment 3•7 years ago
|
||
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+
Assignee | ||
Comment 4•7 years ago
|
||
DROP and TRUNCATE statements to run against -prod.
Assignee | ||
Comment 5•7 years ago
|
||
I've run both scripts in their respective environments. I think we're good here.
Reporter | ||
Updated•7 years ago
|
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 6•7 years ago
|
||
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.
Description
•