Currently execution of ALTER queries on materialized views has not been fully developed.
(according to documentation)
It will be very convenient if materialized view supports:
This feature would be very useful. I learned (via google groups search result) that the best way right now is:
These steps are not atomic and if 2. or 3. fail, then you might have a problem. It's also not trivial to block all running clients from accessing the relevant tables while this is happening.
A full fletched ALTER on materialized views would solve these issues.
@alexey-milovidov do you have a preference for alter materialized view query syntax? I might give it a try.
Most helpful comment
This feature would be very useful. I learned (via google groups search result) that the best way right now is:
These steps are not atomic and if 2. or 3. fail, then you might have a problem. It's also not trivial to block all running clients from accessing the relevant tables while this is happening.
A full fletched ALTER on materialized views would solve these issues.