pgroll icon indicating copy to clipboard operation
pgroll copied to clipboard

Integrating `pgroll` into databases that use views

Open kvch opened this issue 10 months ago • 2 comments

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.

kvch avatar Jan 24 '25 14:01 kvch

This has risen as the primary concern for me as I've looked into using pgroll. So a +1 for some solution around views being integrated to pgroll.

xremming avatar Apr 03 '25 13:04 xremming

This has risen as the primary concern for me as I've looked into using pgroll. So a +1 for some solution around views being integrated to pgroll.

Thank you for your feedback @xremming.

gulcin avatar Jul 03 '25 12:07 gulcin