Skip to content

Comments

docs: Document views support in MoveTables#2077

Draft
promptless[bot] wants to merge 1 commit intoprodfrom
promptless/movetables-views-support
Draft

docs: Document views support in MoveTables#2077
promptless[bot] wants to merge 1 commit intoprodfrom
promptless/movetables-views-support

Conversation

@promptless
Copy link
Contributor

@promptless promptless bot commented Feb 24, 2026

Open this suggestion in Promptless to view citations and reasoning process

Adds a new "Views Support" section to the MoveTables concept page documenting the ability to move views alongside tables in v24.0. The section explains that views are recreated in the target keyspace with routing rules (same as tables), and describes the view validation that ensures views only reference tables being moved or tables already on the target. Also mentions the --skip-view-validation flag to bypass this check.

Trigger Events

vitessio/vitess PR #19372: MoveTables: add support for views

Promptless Research (1 GitHub PR)

Agent Response

I've completed my review of PR #19372, which adds support for moving views alongside tables in MoveTables workflows.

Summary

I created a documentation suggestion that adds a new "Views Support" section to the MoveTables concept page (content/en/docs/24.0/concepts/move-tables.md). The new section documents:

  • MoveTables can now move views alongside tables as of v24.0
  • Views are recreated in the target keyspace with routing rules, same as tables
  • SwitchTraffic and Complete operations handle views the same way as tables
  • View validation ensures views only reference tables being moved or already on the target
  • The --skip-view-validation flag to bypass validation when needed

What I didn't document (and why)

Per your configuration, I did not update the vtctldclient command reference documentation for the new CLI flags (--all-views, --views, --exclude-views, --skip-view-validation) since those docs are synced separately by the Vitess team.

I also noted that the Schema Routing Rules page (schema-routing-rules.md) already has a "View Routing Rules" section documenting how view routing works, so no updates were needed there.


Tip: Use Vale? Add your vale.ini when setting up your Docs Collection.


During the `SwitchTraffic` phase of the MoveTables operation, for primary tablets, Vitess may be briefly unavailable. This unavailability is usually a few seconds, but will be higher in the event that your system has a high replication delay from primary to replica(s).

## Views Support
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Citation: Based on PR #19372 which adds views support to MoveTables. Key implementation details from go/cmd/vtctldclient/command/vreplication/movetables/movetables.go (new flags) and go/test/endtoend/vreplication/movetables_views_test.go (validation behavior including error message 'view references table not being moved').
View source

@mhamza15 mhamza15 self-assigned this Feb 24, 2026
@netlify
Copy link

netlify bot commented Feb 24, 2026

Deploy Preview for vitess ready!

Name Link
🔨 Latest commit 52fe42e
🔍 Latest deploy log https://app.netlify.com/projects/vitess/deploys/699ded0d775fd30008eb8e5e
😎 Deploy Preview https://deploy-preview-2077--vitess.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant