Skip to content

Restore permissions when dropping and recreating a matview #213

@corviday

Description

@corviday

When a materialized view is changed by a migration, the view is DROPped and then CREATEd. The newly created version does not inherit the permissions the DROPped view had.

Recently we had this issue with the upgrade of vars_per_history_mv . It was fixed with the following command:

grant select on crmp.vars_per_history_mv to viewer;

This command should be incorporated into migration 3505750d3416 for both upgrades and downgrades.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions