Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l7vRk-0007hw-2G for pgsql-hackers@arkaria.postgresql.org; Fri, 05 Feb 2021 07:22:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l7vRh-0001E4-U7 for pgsql-hackers@arkaria.postgresql.org; Fri, 05 Feb 2021 07:22:25 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l7vRh-0001Dr-NP for pgsql-hackers@lists.postgresql.org; Fri, 05 Feb 2021 07:22:25 +0000 Received: from relay12.mail.gandi.net ([217.70.178.232]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l7vRe-0006gQ-CM for pgsql-hackers@postgresql.org; Fri, 05 Feb 2021 07:22:25 +0000 Received: from laptop-ronand.localnet (static-176-158-121-96.ftth.abo.bbox.fr [176.158.121.96]) (Authenticated sender: ro@dunklau.fr) by relay12.mail.gandi.net (Postfix) with ESMTPSA id D3C9220000B; Fri, 5 Feb 2021 07:22:18 +0000 (UTC) From: Ronan Dunklau To: Michael Paquier Cc: Tomas Vondra , pgsql-hackers@postgresql.org Subject: Re: Preserve attstattarget on REINDEX CONCURRENTLY Date: Fri, 05 Feb 2021 08:22:17 +0100 Message-ID: <11797662.T7Z3S40VBb@laptop-ronand> In-Reply-To: References: <16628084.uLZWGnKmhe@laptop-ronand> <80274775044a11f6f42af9c39640a055@dunklau.fr> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Le vendredi 5 f=E9vrier 2021, 03:17:48 CET Michael Paquier a =E9crit : > ConstructTupleDescriptor() does not matter much, but this patch is not > acceptable to me as it touches the area of the index creation while > statistics on an index expression can only be changed with a special > flavor of ALTER INDEX with column numbers. This would imply an ABI > breakage, so it cannot be backpatched as-is. I'm not surprised by this answer, the good news is it's being back-patched.= =20 >=20 > Let's copy this data in index_concurrently_swap() instead. The > attached patch does that, and adds a test cheaper than what was > proposed. There is a minor release planned for next week, so I may be > better to wait after that so as we have enough time to agree on a > solution. Looks good to me ! Thank you. =2D-=20 Ronan Dunklau