alter_view¶
The alter_view
procedure allows changing a view's query without any down time, which can be useful for migrations. The procedure will create a new view with the new query and will start populating it. Once the new view is ready, it will be swapped with the old view atomically.
Syntax¶
Parameter | Information |
---|---|
view_name | The existing view name for which to change the query. |
new_query | The new query for the view. |
Examples¶
Altering a view: