Skip to content

Add migrations to truncate error_tracking tables on PostgresSQL

Arun Sori requested to merge arun/truncate-errrotracking-tables into master

What does this MR do and why?

Adds migration to truncate error tracking tables on PostgreSQL.

Integrated error tracking should now use ClickHouse database.

Error tracking tables in PostgresSQL are not used on Gitlab.com since 14.9. Last written record to these tables was on 2022-09-29 11:46:29.565746+00.

As these tables are no longer used on Gitlab.com, this migration truncates them.

For details please see https://docs.gitlab.com/ee/operations/error_tracking.html#integrated-error-tracking.

Also discussed on #396801 (closed).

Closes gitlab-org/opstrace/opstrace#2134 (closed).

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Arun Sori

Merge request reports