Skip to content
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

Validate Mirror: PostgreSQL Checks #1110

Merged
merged 8 commits into from
Jan 19, 2024
Merged

Conversation

Amogh-Bharadwaj
Copy link
Contributor

@Amogh-Bharadwaj Amogh-Bharadwaj commented Jan 19, 2024

This PR adds a Validate mirror button and corresponding logic to check if the postgres source peer and selected tables are ready to be mirrored. Moves validate peer logic to separate file

This PR covers:

  • Check if replication permissions are there for user
  • Check if we can do SELECT * FROM TABLE LIMIT 0. for all selected tables.
  • If initial copy is selected, they can’t enter the replication slot.
  • Check if publication they provide, is attached to all selected tables.
  • If no tables show up, remind them check GRANT permissions.
  • Validate peer: Don’t let you create < 12 version
  • Link to docs in CREATE PEER page.
Screenshot 2024-01-19 at 7 12 21 PM Screenshot 2024-01-19 at 7 13 03 PM Screenshot 2024-01-19 at 7 55 41 PM

@Amogh-Bharadwaj Amogh-Bharadwaj force-pushed the validate-mirror/postgres branch from f41a767 to 4ee8165 Compare January 19, 2024 16:36
@Amogh-Bharadwaj Amogh-Bharadwaj merged commit 990cb5b into main Jan 19, 2024
11 checks passed
@Amogh-Bharadwaj Amogh-Bharadwaj deleted the validate-mirror/postgres branch January 19, 2024 20:30
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.

2 participants