-
- Downloads
[IMP] core: support dropping materialized views
The function `drop_view_if_exists` only works when the view in question is a regular view, [materialized views](https://www.postgresql.org/docs/current/rules-materializedviews.html ) need a special syntax to be dropped (with an additional `MATERIALIZED` flag). This is an issue when e.g. needing to replace standard views with materialized views for performance reasons, as dropping the views now fails. Check the table kind beforehand and dispatch to the correct query. closes odoo/odoo#117424 Signed-off-by:Xavier Morel (xmo) <xmo@odoo.com>
Please register or sign in to comment