public inbox for [email protected]  
help / color / mirror / Atom feed
From: Célestin Matte <[email protected]>
To: PostgreSQL WWW <[email protected]>
Subject: pglister: issue with materialized view after upgrade (+ solution)
Date: Fri, 29 Sep 2023 17:17:03 +0200
Message-ID: <[email protected]> (raw)

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





reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: pglister: issue with materialized view after upgrade (+ solution)
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox