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 1x3qD0-006hao-1l for pgsql-hackers@arkaria.postgresql.org; Tue, 08 Sep 2026 07:25:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1x3qCx-005Fnc-2E for pgsql-hackers@arkaria.postgresql.org; Tue, 08 Sep 2026 07:25:31 +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 1x3qCx-005FnT-0N for pgsql-hackers@lists.postgresql.org; Tue, 08 Sep 2026 07:25:31 +0000 Received: from flow-a5-smtp.messagingengine.com ([103.168.172.140]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1x3qCu-00000003XII-0avo for pgsql-hackers@lists.postgresql.org; Tue, 08 Sep 2026 07:25:30 +0000 Received: from phl-compute-05.internal (phl-compute-05.internal [10.202.2.45]) by mailflow.phl.internal (Postfix) with ESMTP id 3CFB9138020B; Tue, 8 Sep 2026 03:25:26 -0400 (EDT) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-05.internal (MEProxy); Tue, 08 Sep 2026 03:25:26 -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=1788852326; x= 1788859526; bh=O2BLWF+ATrR+3LaXZ1LZTS/EGxJTRzbOAOr6MIfITf4=; b=t k1JTaI6b9R+56fNXri7PNJ1ew0z/gWO1rIyP1tV4hzSnWZD4pCUEjmQCTxf5JLx9 EgVDLPlXTyMt74+r9nnyHlYwHpUBmlCTaxCQ2uEsDpbjxaOxsTET6N2ced/FRIXg UPDBpL2VduP52KLVP2Z4ZDJIXtKaLb6aymYiDB3ST7+5mahcUKbADoz4aFGoIl66 zgwwu4F9BE/eGocL/G+ElA7NnX5V38coJOxTqhEf9fpq5mhw8+DZsFL/l1XVtNND cSEABCzoO5qAc/B14c/tgCDPKVhJbHbZdr8pdeSYvG1Bd8O9qWZkzO7SF3Act39W KptxO0csvjf3cF2UyBJ2Q== 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=1788852326; x=1788859526; bh=O 2BLWF+ATrR+3LaXZ1LZTS/EGxJTRzbOAOr6MIfITf4=; b=EFB/bVF9/3SBMlHYR gBHmnwBEGvuIvT+D6XfGcE0zqtP5iZ6YkZqbWYD2ftMwLg2SToQ3KPmbd5aX8TFm 74xhwNbjs7PmM7mq3g/cNcsaSa2omYGDiyv9hhTfdOg7dqPUfjx4sYoQl4RKUrkg RYaV0mU5/26zw4jTZFBtMEK/X02NYrAyqnz/58Bo/oFjVBZ0UQlqKlqtL55PnPgq Nw4qE388uXt2BqTpdK9p3WYDmi8qWAkRDfkAoXOsCYfbq+h3AyzV0noaavWJS8Je rOwNMlXRjTt1HAzTBre2CqRoIa/w5zyWpS6ljdp4e5eHkvqRjJ392UPjM45czVAt b7xwg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTEW4LBGPvwhcD8/VfmBws6Igc0TDHX4D9bt4QXgLh8m2ptVnbbRplGHtS1FYoqcb7 uWDFgUn0UgXuQLKkM6lwgAo3i+pNWzrRzmQf05BWqDjYqE2M848MVY3eSqJh3J1W2hPIgB 9okss1Nfoc0Q9kP2qV4mrdAksYglET5lS1HZdAUS5ezbF4GlE4Zy2Qc7VFLPrvDnnuDC98 FzShKkgJHWDlahKtJdE7uIlX3inmWVf3tb8T2bA0c47281OBZDFzs8+QrKYquvfO4sAHZ2 F0ccW2MjJu3XdFhwQTTwizhbED83pPOhqFFN4Cx+ssvtiTzeOkXJEGMJh/ewuOXSycTUUA SpzTwPVHoi7Er1fYmMUejDUmmIR9pKGbJ32B2if5wyQeJoM8IMw9WvJgihNgYcSu2sbsVR m4Tt/Ip4X5AaMA57N60edrBMgAOc1PSvlotnpnAENliXSGKSBUtIzKR31rf6Nj5TtmaxvV NXSRNga1eFw5qUJCsKBb/ZqqH9lYzpNW8vEdIJxQ/zfmQTPdmKlbVl0YF0NBuM2AP0e+yy XzC4Wz3ASjvkR0vLLjtgZIvwVo8w9fDZip3LVaYtT5WDzJbAdfQk65yJr2PK48Zoqd0UDw 983iDStXRoPdXgAs7zIuIlBjsyRnOgehfta1kxjTpKa1A2zP7vibTASLHEzA X-ME-Proxy: Feedback-ID: ie3de48e3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 8 Sep 2026 03:25:25 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kurilemu.de; s=schmee; t=1788852325; bh=5+52mx80oM692FLxY58d76otNuJekAypbjzvVD7iDYc=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=uSGFVWPqPCseLc5A2CHNzVYe1dn1L3/Cfhwt2mrRj+j88gwRAXc0R+tzIFXV8aSrb Ck/IHAaQryCdNIpCsYHECxao0Ct4MMS6xazDb/M9TO4Dp/CvBDU6M34akMnQyjRAHg 8V1ZbcP4Rcy/ZTdMGTJbk97vueZXyiLUcnx1HBbBejvZ/NjLCKUCxBbj27t5AcRYzo md1ZSxV9mTG4Uz5tEhRTjfT0XEWZmcYXMFzLTLb0NdrDsCKqJDO3WqXIzVEfHqD6hJ 9d+ojAZmx+Pb+B3UHk4kBzWne1Kd0YyDiCyw0bMwKN62PozrGqTyF29Bf9AXLWBxSy +y7eX5KfLvZ3Q== Received: by ida.kurilemu.internal (Postfix, from userid 1000) id 28422B00186; Tue, 08 Sep 2026 08:25:25 +0100 (BST) Date: Tue, 8 Sep 2026 09:25:25 +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: 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 Moving thread to -hackers. On 2026-Aug-31, Zsolt Parragi wrote: > On Mon, 31 Aug 2026, Christophe Pettus wrote: > > I think your statement has its own answer embedded in it: It's > > acceptable for REPACK, a brand-new command, to have different > > behavior in the presence of invalid indexes specifically because it > > would be a behavior change if we pushed that change to other > > commands. > > But that's not exactly what happens here: currently REPACK and REPACK > (CONCURRENTLY) behave differently in the presence of invalid indexes, > and that is definitely a bug. 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? Maybe in pg20, barring complaints against this, we can propagate the same behavior to CLUSTER and VACUUM FULL. (But that obviously need more discussion.) -- Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/