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 1x4b1l-007Gfq-31 for pgsql-hackers@arkaria.postgresql.org; Thu, 10 Sep 2026 09:25:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1x4b1j-003eZQ-2g for pgsql-hackers@arkaria.postgresql.org; Thu, 10 Sep 2026 09:25:03 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1x4b1j-003eZ6-01 for pgsql-hackers@lists.postgresql.org; Thu, 10 Sep 2026 09:25:03 +0000 Received: from flow-b8-smtp.messagingengine.com ([202.12.124.143]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1x4b1g-00000004vcK-3H7p for pgsql-hackers@lists.postgresql.org; Thu, 10 Sep 2026 09:25:02 +0000 Received: from phl-compute-08.internal (phl-compute-08.internal [10.202.2.48]) by mailflow.stl.internal (Postfix) with ESMTP id A7BED1300E24; Thu, 10 Sep 2026 05:24:59 -0400 (EDT) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-08.internal (MEProxy); Thu, 10 Sep 2026 05:24:59 -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=1789032299; x= 1789039499; bh=6sB5V03BaHKSC6WvzHdR46JPEgg+C/6LiIuK6qkAfJk=; b=O Cy9Hb04pSm+YN2teavj1FH4y0qXKXLU524FQ5l+FDg36/XIGbo7rNfcyr6aktYOR e2cktk/z0wzAlqk6S6WS1LQPYfohinfILCJEl3oAk/STuZ0wNtUvajGbpnzb+EjO UsJhaTXxq2vzacS/VcCbP+EE5pR+QEpfHIEcawI5TbFZFrE0WX+6t5enF8HzNrmx HmaBMxcN5cCJFGtkEbpG2EXoRsPhTPCMdwS4le/rfAhbunS3dSZLwKqg+txEr8Xf glEhdqEWAf7i+H+y59REzJ0eOokbQzqJOgyBNvCT/NO4Yu1EF0iiEGYfpWaqQrj0 IYq/L3sYIhS0aQk1kGl4w== 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=fm1; t=1789032299; x=1789039499; bh=6 sB5V03BaHKSC6WvzHdR46JPEgg+C/6LiIuK6qkAfJk=; b=INH/zRvRsrhlXGWeo TY0Gu+GS3AiOs/rTe38OHUcHHKFsL+0JpcJ9Alyn7CwYj6FEQjNNOhECbYlPrB2A /y5dSDFpmNLDii0uLNomPu8cuovCiaHwlLR+tqHS8/AfIksYn5sRHJmQf/k3ViVd +YJDP3CM3PWiHsOlDkp3K+3oOPu8r4goQYf4MCZyzbQ9+M0UgS0osiWCM9/wenK6 218vpwqKa1U/lbwZoEUQgbujKUjoMov3JPa9+1plBdxmEWJDuzW5WyvNXBbY3sn7 xXZZ1NfrwZA/BGO13i05e4U3vpC+5HwRmJahZ8Gq86X5OTwLH4cFjkr4EkbY+0NA fbGWg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTFlcYgKtxx96Z7ZFV5X94/LTmIwhAJL0Z1CnttC2pwiGQIWAgEAwF7sOHHass6cPd q5Qscz8Io/C9apvU6uX6vmfh2pAvT2GtcytRelS7Fs9XQUILGSx3XtLL2YVAy7QnQc4rqq 3DmAFOSDpt+i6+aNgaRze48DrhQYIR0l4iK/64j0g3havZRXJ4yPUAVlTwfcCyjUwVzeW3 qvvhysuEio9jUNnwh+3FL12g5ehCDrEPAXO2gRVGR7SxeWxTDFdZ/54rGhRgn+Hu46hOjh L/ILqtwAVBVW6KpzdgdOdRMkjiw7n2v2pJiyFFZ6dKObHSfRNVgiIYwUGJ9dSzA0Hgk/HM ikZlcEnETA+zgko1y9cW/VHZM5/8l4izUgDklme3bHsGzCGykBJyQbqXMVeBJhNaonm2XA au4RtYPcdiKSa4w54BBG1uib/m6bJhymKic65MvvCVMIBZA7t+7KhBXJ0oYpEwMFfm2QsG PZ5PD0ja4dozj+OWtcgD7zkHsm9UM6GUdv8f2q0xC36vNRK0vHG1KsgjAiY6w8/yNKd9n1 aIJ9qGUEBIJdCCrgDGmjL7H2rYMeljfWHB/YxpHUKnVKEf/WfkV26bqYDvI7tPkrAWVG6F n4HqbF0lswK0d2qLRyoVLKlEIrk22QaDN5ve3xFq/6e4x7pPEjt9dKmbTWUg X-ME-Proxy: Feedback-ID: ie3de48e3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 10 Sep 2026 05:24:58 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kurilemu.de; s=schmee; t=1789032295; bh=PtUydM6LKPZ49oGZpy9WzyT+Q2Ht1DzXpCA516lZYYM=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=r0npkD27MOz5cT/LHlSwd7Hfl5wW5bGKh0geUz5AVaSTnFmf5Faoh2VaaNIrHQA15 GSU9oB0ckmNSnyiKS7i8fOcYXSIjuxdgQ7NkecepyPPqD793FBnJYPHwcjpt5dhIlD YiS50iy4ln0/LJqQIXNA7XGvZDWVAf3rq3TMUfBdCTz/Puf38fh5qSWkovDmSVcXgP C4LuAe1cgPwve/tOCR7d/wlnCX2PLMrvNwaoDL0aSjGvRhfFsOnfs7g1he4QOA7NkY OWiC+A5z7XKgmJmsC6kIRxj0QO8zXzbDR5HDJ4rtiox6xDQgefFvfpnjfg6UFVKGfl hQpIKmjMxDIgQ== Received: by ida.kurilemu.internal (Postfix, from userid 1000) id 698BBB009D2; Thu, 10 Sep 2026 11:24:55 +0200 (CEST) Date: Thu, 10 Sep 2026 11:24:55 +0200 From: =?utf-8?Q?=C3=81lvaro?= Herrera To: Zsolt Parragi Cc: Christophe Pettus , pgsql-hackers@lists.postgresql.org, Kyotaro Horiguchi Subject: Re: REPACK (CONCURRENTLY) doesn't handle invalid indexes Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="ih3nxo6vxmekktdf" 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 --ih3nxo6vxmekktdf Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit On 2026-Sep-08, Álvaro Herrera wrote: > Yes, but I think the question is in which direction should we fix said > bug. My preference is to go for Kyotaro's suggestion: have both REPACK > and REPACK (CONCURRENTLY) raise an error with an invalid index, asking > the user to drop it. > > Would anybody oppose that? Concretely, something like this. (Hmm, I guess this should be noted in repack.sgml as well.) I don't want to touch the behavior of REINDEX, CLUSTER or VACUUM FULL in pg19 at this stage, much less within the context of an "open item"; we can discuss that for pg20 afterwards. -- Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/ "Uno puede defenderse de los ataques; contra los elogios se esta indefenso" --ih3nxo6vxmekktdf Content-Type: text/x-diff; charset=utf-8 Content-Disposition: attachment; filename=0001-Fail-REPACK-in-presence-of-isready-indvalid-indexes.patch