I'd prefer ALTER VIEW <name> SET ANALYZE=true; or CREATE/DROP ANALYZE <SQL>;
Also it should be possible to change statistics target for analyzed columns.

Such a statement would allow to analyze multi-table correlations. Note that
for view planner should be able to use correlation information even for
queries that do not use view, but may benefit from the information.

Reply via email to