Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1x18p9-0050H1-2l for pgsql-hackers@arkaria.postgresql.org; Mon, 31 Aug 2026 20:41:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1x18p8-00224G-2W for pgsql-hackers@arkaria.postgresql.org; Mon, 31 Aug 2026 20:41:46 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1x18p8-002247-0h for pgsql-hackers@lists.postgresql.org; Mon, 31 Aug 2026 20:41:46 +0000 Received: from fout-b8-smtp.messagingengine.com ([202.12.124.151]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1x18p5-00000002G9g-1Yq4 for pgsql-hackers@postgresql.org; Mon, 31 Aug 2026 20:41:45 +0000 Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfout.stl.internal (Postfix) with ESMTP id D8EC11D00139; Mon, 31 Aug 2026 16:41:40 -0400 (EDT) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-04.internal (MEProxy); Mon, 31 Aug 2026 16:41:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kurilemu.de; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to; s=fm2; t=1788208900; x= 1788295300; bh=WOnwgfeNCMsyLRt/BfnDSpJc+oE1IfhXgoyMpoSSLuI=; b=M s28MKFNyfG+iLtc9J0P2lUnHBxhu2vTYTiPr8sC6DvvGkQ+OlSvApFxlyI9OUaPS ovUh4w/gYG9jqhZ8nIKo3XRvsQnuSJv9c80A6mfQaKx1OLMHYroBZeU9cDC5K1H4 hUJiLzJcvLc6SJd8f5ptm6Wo5AKwRgI2mpvcwLRxDqIgdOlUQzuJioyhjfo+VKqZ 09AJtRVCel8Pqe+NDL/SHMIktEGLAJuKXsCsH/oYEgLFo6MUvYuS9Y6V8FUospO+ LowjkEO65NzB6mISwIPMiPcL1mGvscFlz6sALB8ENbyfxuab/Mk1zJMRGGg53qN8 XMQHj3mZWOH8VoiWbLR0A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1788208900; x=1788295300; bh=W OnwgfeNCMsyLRt/BfnDSpJc+oE1IfhXgoyMpoSSLuI=; b=ikM4eb1b5YT2AQF6f oFIyMO0kDrSQABCpdbAx58Wa+jXg20K40bwUwpPUO3fQHtpIx9mc9NXHQpbwgYH7 n3b3S07ErrtdzXdhdSrfXnss0GEnnQ05DuWuIIxE7zQZwdDPGKBbsokPEkNqWW4x o9Mnjfv2IrrTjR4J8ng/K9hgjDJcoRT/f6d+ugPJ0h7znfqirJEhxf+OzI7BFsxn m5JQH0TU9WZTPR9jchAx+DcDuieHLkekKLCRjXeiZYR0mDgKrPNpG8jMorApNFxu zYZEvlYaARx9o8N6pPTmlt9LpC+9mfcFKR64gYQQ0ZaQhVLQjK7+Ij61IrSh/QKC O9E6Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTENl0DiQi3KuWnNRFKcNYGIUTb5l3gp6ezD4B0kr4nXSHHBtr0FfOw39BNW/REFgD b+tyNBtZWr7Tcp4Ekrwad5fk25Vz/le5LvQGMfXuwxCSJg2azPbcTS5RdU5jnFZFGwgJ8I P0736PywMUUtmdm+CyI2s55AhTWzbe21JXyQ5pf36RHPq4nA/YfFACyne2Wz6Q/uUX8VEt 3azBCJicabLZarySPqg/LgKClof6W6w7uZFxtVsyO6jWT1TpCj9XwDizfHKQmVBtYXHyXW R0xEI33OUXXJCTO2FeA7GFeOlPKN2fjWoPJ5hrhijSOqTb4r2aTY418IzcWGVGMC4FW/RH U+szDodIR2SGGjDEnN277y8O2fyj3ic8xxtrMiEh/+8HXgt7t1fGJF157XdyvimoLkOZ1O pEH1tS1HF1fp3HcmUE6Li2Zf8mXshWrk36JlDerLB42tBS9RNE5jYTBFWGZyW1OXXFDaOa 0xJRqgYqLKTU8b03gmBer6R0eUw1xZFcxlbGEIIoNn/idCdlrrG/rjayjCA4jhWVTvaUtd PyPRrfzUqEZ84N5Dv9dFmZleX5ElY/7E6NBiyYqG7ISg7bLiVYWrRuVMbVgZgMHmgIyAI+ u0kXgXcs3GoR1P8Y8nL7sHK+4NM3H9q3cySYUqqX5aWpx7pUjc1LC91uGanw X-ME-Proxy: Feedback-ID: ie3de48e3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 31 Aug 2026 16:41:40 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kurilemu.de; s=schmee; t=1788208897; bh=33LHsVbVebPp/RsXpWBKFr8HRE4+bMrHCDFtG4mgMos=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=TK6F1LYkAb5eJ9A7maqoIfwvKh8pYz/d2be82Sj7qZDsfeSPwcSgOiN4XVes9VSwP 6QKurR/Fs2e9E7UBL6rZL1VaChJ/vkJK2lVFbHaX27SyGWmSDXJpC3P/AuvvtM/F/7 FRG7T/YRt04FZdxWgmBUkhq6KjywAryvGiwfVLgLv/eQZ0ce3vyPF9xOZJYuWye3/8 ksLxSLmkWCsH7+Zkm4uY1jWrtVQ1RKuFQjZqimjvzumzL3JdW6q8AhbQkuIOiu3CRo QSAnv2r4ij/4/bBDNIWxyw5cjfcSSjF6rxrvNSk569B2f9MdTjxCAVAuB322E4qOUH OPL/j7OvDsiWg== Received: by ida.kurilemu.internal (Postfix, from userid 1000) id 276A4B00180; Mon, 31 Aug 2026 21:41:37 +0100 (BST) Date: Mon, 31 Aug 2026 21:41:37 +0100 From: =?utf-8?Q?=C3=81lvaro?= Herrera To: Bharath Rupireddy Cc: PostgreSQL-development , Nathan Bossart Subject: Re: REPACK (CONCURRENTLY) fails with wrong error for materialized views Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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