Refresh concurrently
REFRESH MATERIALIZED VIEW locks readers out. With CONCURRENTLY readers keep reading, but the view needs a unique index on plain columns.
task
Add the unique index REFRESH ... CONCURRENTLY needs on mv_day and refresh.
Run a query to see rows here.
Run EXPLAIN on the statement under the cursor: Plan tab, button Explain.
No tables yet.
REFRESH MATERIALIZED VIEW locks readers out. With CONCURRENTLY readers keep reading, but the view needs a unique index on plain columns.
Add the unique index REFRESH ... CONCURRENTLY needs on mv_day and refresh.