pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Álvaro Herrera <alvherre@kurilemu.de>
To: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Cc: Nathan Bossart <nathandbossart@gmail.com>
Subject: Re: REPACK (CONCURRENTLY) fails with wrong error for materialized views
Date: Mon, 31 Aug 2026 21:41:37 +0100
Message-ID: <apXlfl6bbh3BAKXD@alvherre.pgsql> (raw)
In-Reply-To: <CALj2ACXPvy4_LkQ0nHKgbZjAGK9fkDqRYUvXA3hgwxPm_X7Eng@mail.gmail.com>

On 2026-Aug-29, Bharath Rupireddy wrote:

> REPACK (CONCURRENTLY) fails with a confusing "no identity index" error
> when a materialized view is specified. Please find attached a patch
> that reports a proper error, similar to the other cases in
> check_concurrent_repack_requirements(), and adds a note to the docs. I
> think this needs to be backpatched to PG19.

I think this should reuse errdetail_relkind_not_supported().  I would
add a trivial test as Kiran Kaki suggested though.

-- 
Álvaro Herrera        Breisgau, Deutschland  —  https://www.EnterpriseDB.com/
"Most hackers will be perfectly comfortable conceptualizing users as entropy
 sources, so let's move on."                               (Nathaniel Smith)
      https://mail.gnu.org/archive/html/monotone-devel/2007-01/msg00080.html





view thread (9+ messages)  latest in thread

Message-ID: <apXlfl6bbh3BAKXD@alvherre.pgsql>
Permalink:  ../apXlfl6bbh3BAKXD@alvherre.pgsql/
Also on:    postgresql.org/message-id/apXlfl6bbh3BAKXD@alvherre.pgsql

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: alvherre@kurilemu.de, bharath.rupireddyforpostgres@gmail.com, nathandbossart@gmail.com
  Subject: Re: REPACK (CONCURRENTLY) fails with wrong error for materialized views
  In-Reply-To: <apXlfl6bbh3BAKXD@alvherre.pgsql>
  References: <CALj2ACXPvy4_LkQ0nHKgbZjAGK9fkDqRYUvXA3hgwxPm_X7Eng@mail.gmail.com> <apXlfl6bbh3BAKXD@alvherre.pgsql>

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

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