yugabyte / yugabyte-db

YugabyteDB - the cloud native distributed SQL database for mission-critical applications.
https://www.yugabyte.com
Other
8.92k stars 1.06k forks source link

[docdb] PITR: Add persistent tracking for DDL statements #8773

Open bmatican opened 3 years ago

bmatican commented 3 years ago

Jira Link: DB-1829 To start with, this can be a new type of sys_catalog entry, written to from every DDL entry point. We can use a simple time based query interface, to be able to see the last N entries / last M hours of entries, via yb-admin.

This will help for PITR, as we can then be able to rollback to right before executing a particular DDL statement:

bmatican commented 3 years ago

After the initial proof of concept, we should augment this with

cc @sanketkedia

sanketkedia commented 3 years ago

I am taking point on this. cc @spolitov to avoid duplication.

sanketkedia commented 3 years ago
Screen Shot 2021-07-06 at 5 58 59 AM Screen Shot 2021-07-06 at 5 58 46 AM Screen Shot 2021-07-06 at 5 58 33 AM Screen Shot 2021-07-06 at 5 58 20 AM