Repository navigation
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
needSkipTablesInMocatalogto specify which tables to skipduring restore.
restoreSystemDatabasefunction to handle restoration ofsystem databases.
needSkipTablefunction to include account ID checks.doRestoreSnapshotto 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