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 1wFUtY-005Cnp-2r for pgsql-hackers@arkaria.postgresql.org; Wed, 22 Apr 2026 10:33:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wFUtY-00CxqJ-0S for pgsql-hackers@arkaria.postgresql.org; Wed, 22 Apr 2026 10:33:24 +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 1wFUtX-00Cxq6-2h for pgsql-hackers@lists.postgresql.org; Wed, 22 Apr 2026 10:33:23 +0000 Received: from mail-ej1-x62a.google.com ([2a00:1450:4864:20::62a]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wFUtV-00000002EfR-3QKq for pgsql-hackers@lists.postgresql.org; Wed, 22 Apr 2026 10:33:22 +0000 Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-ba9ad0fbc3aso237396566b.1 for ; Wed, 22 Apr 2026 03:33:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1776854001; cv=none; d=google.com; s=arc-20240605; b=JTcKYz56FzCx0ysupqNVqF6FLYU0ZjW4rdxVgY9sDPNl+LSxKZ/0nqb556nGsFnbcZ HJvVPzSWW6DqQTzmmgkd3MiAiErx6BkbUPZ1QggQaou2jyX53dX2vea5KsgaLpN/Fq5r wNPPFbq7v2mOnTKben+SWqQtx8LzZzVDwF9MqcIuPuRfblwuRAVDC399Ox+TNBxZYkqr cbcbB3hILBjzOGmM261S0ut3qZpdyKdUQ+nwUYBuy93TX65C+XZ0ll4UoVSGtXuqtHJy CwlEUZFP+kDxeIz5IQbCLdqxwYU5LRNiX8ZauO3j6NbcJ5AiGNT2uGZG5lZqWu/5Wcwt 0MsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=9I0QuxKs1WE8jcL1/Rj1VHwciCXk+VisrgR358pJi34=; fh=2xld7S7Uw4Ns2InrRYVBmRPucgEgIi+2irxUFsv26sg=; b=IZBcoxTLiqlQgisvGmPGZUd6tMr+IpWhY6qshYjCdb6kcxtwnZPhwTOuVVoiaoETrY KYazDrTWKksz9np1c0PdV1apMaJxz3QaHSviYUKcRWTbr8rmnVoCfUsVBIuiGWX+SJxY MpDc5L2Jz/VSCVW0tBIuqoO3ufg85r1OAmPuJK8X9/zaEXRX4K1OvVX/+RUSgH2GdP10 /wlbjp0OFN7JjnCyzmYHSlD8e36H8iuDUo6ORp+BZM1QVaNietEzmXy5w4mwmwjd5+QE dvERjZ5qKQHlM/NTJopWcCdUSIzSwXCJFlPwV9e1LPqiwYNzN9z1KOAqqWe6Gfa50oDL Y6XA==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1776854001; x=1777458801; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=9I0QuxKs1WE8jcL1/Rj1VHwciCXk+VisrgR358pJi34=; b=Z7JqIe+xuEhepPQO4VNuBeG+03u7qKnbm+hBGRQm6LPYe89XP43+cd5tG2mw/nlfTe vf2sco8ZD1atNoYtPYH+Ld9yBQo6NcFr7+TVufGblkIvuFYjOo6MITWFPUwtRtGvZ1mx Onfrg8XzyX2v5MeZ/0b/XtfX3d1rY6UPIjfNU/Jt9M4AjgE3DnqDmhGAUqwsCS0dQGAN HaVLV5GHl7JUsbaPlA3qO1WGEVEpKvPKeYLvKdgifZBuqPUyoiMriEGsq/9UcGIKa32S tYwc48URNkxI+UuQLASpUNc8G63synVRWRWUQSyBaheN+RW/KeuaVHV7Nqo3vF1ETfl6 iXXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776854001; x=1777458801; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=9I0QuxKs1WE8jcL1/Rj1VHwciCXk+VisrgR358pJi34=; b=LCr98YiU7YgEg0aLQRmJ/F0EHFNWIJ1GsXT4B18mKXD+8G2G/VCQF2MgrymGEbbqo4 +p8CGVr91tk4ieicmiHfOvq5b91flJ3RTBexEoG6EV1gbvWFf+nVBXx22HP6yPj4GEEt XeA8u1Cw/2U96F6NEfYUC0ANSk4j+uYkH4rilL0Jfz4R+n7SQ5mmCHnk+N7Ne+ijh9Ie UZdTkLnUVsHApqXSVm6sceNVAW1XwofdfLIB7sKptRY3qtwp6vXbORoeoSes/Ro0tT6m 9eNA55CUXf+qi2Eidtvsm7RcYtnpdjkKjw+8R895QuHHY7VbsJEE7xeihskxGow8A1I8 tplw== X-Forwarded-Encrypted: i=1; AFNElJ9hnw3CDOVi2dJMBykb4UewKFdAF1F8l3zn/nSO6mayb6Fw/EqJEuzA6ZgVF80vc9t23ll3DxopPjzqUtFT@lists.postgresql.org X-Gm-Message-State: AOJu0YzDSAdr3uczCsyEsgS+nKDzBJo2mPiI1TDnO059ydmGouG8/gMQ moMVG9qIF9yWvWe8vHQKKwXIyElOAhcuhopooDTUSt4xAzPKL8u4cNbA/cwbvaRiv31qTlFCieY p9fypXmLinJZ0jb3+oxP2yopDyCuTd80= X-Gm-Gg: AeBDiet0on2CGpHJNCQguJHT2odLUfT7Nvez13eienPzdxV3fRUotoY+ONMg+5zoTBn u+Wp4+D95trpiS9zgS91qgq9DMj+PIZtXNm8SnOcBNdDvELRrwKBZ3bUfmpj/L0s3g3SshPzlpM JthS55YwanJi7NZA8+VdaGBDhaWVFkeSyWDI863kdjtT+TNPQ55q5m9i41zfRcLcD5ZiYlzbdy7 WVy+G4BHW9L4d9wHYPknJMtlthlBzIthYETFZZPA4iyeJJUx0VLjFJW0Z9D6Yf+LM2kiuAxaAbR aPFlmOvgkrYHZuTdMvV8i0N9rSh6Ood/9zdd9jtOgeqBDiIxXTKqhYZL/esiriS0yTfeNmISrld QFKJ8QhOUW+rCuOU= X-Received: by 2002:a17:907:60c9:b0:ba9:6faf:3ce4 with SMTP id a640c23a62f3a-ba96fbeacbbmr368403466b.38.1776854000363; Wed, 22 Apr 2026 03:33:20 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Sami Imseih Date: Wed, 22 Apr 2026 05:33:09 -0500 X-Gm-Features: AQROBzAZKTlo2GfRLqutRZU_8QX4vmpxHjxHoZmrCHKdRVVC8iU_aFDhoWlo46w Message-ID: Subject: Re: [PATCH] Fix: Partitioned parent index remains invalid after child indexes are repaired To: Michael Paquier Cc: Haibo Yan , Mohamed ALi , pgsql-hackers@lists.postgresql.org Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > > One thing that I'm tempted to add is more scans to check indisvalid > > across these commands, particularly after the individual ATTACH > > PARTITION bits on each individual index. That works. > > A second thing. Do you think that it would be worth adding a > > partitioned table that has no leaves in some portion of the test? I > > was thinking about a partitioned table called idxpart2 attached to > > idxpart in the first part of the test. I've found this pattern > > usually useful for this area of the code when recursing with > > validatePartitionedIndex() from a parent. Good idea. > Both things have been added to the tests, and applied the result down > to v14. The patch was able to apply cleanly across the board, without > conflicts. That's rare, these days.. Sorry for the late reply, and thanks for getting this committed! -- Sami Imseih Amazon Web Services (AWS)