pglister: issue with materialized view after upgrade (+ solution) - Mailing list pgsql-www

From Célestin Matte
Subject pglister: issue with materialized view after upgrade (+ solution)
Date
Msg-id 8a949577-ce99-4590-9f31-3fc5d5c162f6@cmatte.me
Whole thread Raw
Responses Re: pglister: issue with materialized view after upgrade (+ solution)
List pgsql-www
After upgrading postgresql (with pg_upgradecluster), I got the following error when loading pglister's /moderate page:

django.db.utils.NotSupportedError: CONCURRENTLY cannot be used when the materialized view is not populated

It seems like the eximintegration.queue materialized view was lost in the upgrade process. It's originally created in
Django'svery first migration.
 

The fix was to run directly in the database: refresh materialized view eximintegration.queue;

 From there, two things could be done:
- Document it somewhere?
- Push a patch to somehow avoid this issue from happening or adding a transparent workaround?

What do you think?
-- 
Célestin Matte



pgsql-www by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: Mailing list subscription's mail delivery delays?
Next
From: Adrien Nayrat
Date:
Subject: Commit fest site - suspect changes