pglister: issue with materialized view after upgrade (+ solution)

Поиск
Список
Период
Сортировка
От Célestin Matte
Тема pglister: issue with materialized view after upgrade (+ solution)
Дата
Msg-id 8a949577-ce99-4590-9f31-3fc5d5c162f6@cmatte.me
обсуждение исходный текст
Ответы Re: pglister: issue with materialized view after upgrade (+ solution)
Список 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 по дате отправления:

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: Re: Mailing list subscription's mail delivery delays?
Следующее
От: Adrien Nayrat
Дата:
Сообщение: Commit fest site - suspect changes