From: | Célestin Matte <celestin(dot)matte(at)cmatte(dot)me> |
---|---|
To: | PostgreSQL WWW <pgsql-www(at)lists(dot)postgresql(dot)org> |
Subject: | pglister: issue with materialized view after upgrade (+ solution) |
Date: | 2023-09-29 15:17:03 |
Message-ID: | 8a949577-ce99-4590-9f31-3fc5d5c162f6@cmatte.me |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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's very 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
From | Date | Subject | |
---|---|---|---|
Next Message | Adrien Nayrat | 2023-09-30 09:44:55 | Commit fest site - suspect changes |
Previous Message | Magnus Hagander | 2023-09-29 07:13:37 | Re: Mailing list subscription's mail delivery delays? |