-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support restore system table (#1.2-dev) #16462
support restore system table (#1.2-dev) #16462
Conversation
support restore system table Approved by: @daviszhen, @ouyuanning, @heni02
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. PR Review 🔍
|
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. PR Code Suggestions ✨
|
User description
support restore system table
Approved by: @daviszhen, @ouyuanning, @heni02
What type of PR is this?
Which issue(s) this PR fixes:
issue #16353
What this PR does / why we need it:
support restore system table
PR Type
Enhancement, Tests
Description
Changes walkthrough 📝
snapshot.go
Enhance snapshot restoration to support system tables.
pkg/frontend/snapshot.go
needSkipTablesInMocatalog
to specify which tables to skipduring restore.
restoreSystemDatabase
function to handle restoration ofsystem databases.
needSkipTable
function to include account ID checks.doRestoreSnapshot
to check if the database needs to beskipped.
build_show_util.go
Update snapshot restoration logic for cluster table attributes.
pkg/sql/plan/build_show_util.go
restoration.
snapshot_restore_system_table.result
Add test cases for restoring system tables from snapshots.
test/distributed/cases/snapshot/snapshot_restore_system_table.result
procedures, and users.
snapshot_restore_system_table.sql
Add SQL scripts for testing system table restoration from snapshots.
test/distributed/cases/snapshot/snapshot_restore_system_table.sql
and users.
snapshot_restote_cluster_table.result
Add test cases for restoring cluster tables from snapshots.
test/distributed/cases/snapshot/snapshot_restote_cluster_table.result
snapshot_restote_cluster_table.sql
Add SQL scripts for testing cluster table restoration from snapshots.
test/distributed/cases/snapshot/snapshot_restote_cluster_table.sql