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

Integrating pgroll into databases that use views #625

Open
kvch opened this issue Jan 24, 2025 · 0 comments
Open

Integrating pgroll into databases that use views #625

kvch opened this issue Jan 24, 2025 · 0 comments

Comments

@kvch
Copy link
Contributor

kvch commented Jan 24, 2025

pgroll gives access to multiple schema versions by hiding tables behind views. At the moment, pgroll does not have a way to provide access to multiple versions of the same view.

Open questions

  • Is this something we want to support?

Views are not materialized, so changing them does not qualify as an "unsafe" or tricky migration. The only use case I see for view support is when two application versions use the same view, but with different base query. So providing two versions of the same view could be useful.

  • How to tell apart old and new version of the view?

We can add a new view to the new schema, similarly to tables.

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

No branches or pull requests

1 participant