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.94.2) (envelope-from ) id 1uGGtl-00FxLB-K2 for pgsql-docs@arkaria.postgresql.org; Sat, 17 May 2025 12:44:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1uGGtk-006OH1-Mm for pgsql-docs@arkaria.postgresql.org; Sat, 17 May 2025 12:44:16 +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.94.2) (envelope-from ) id 1uGGtj-006OGt-Oy for pgsql-docs@lists.postgresql.org; Sat, 17 May 2025 12:44:16 +0000 Received: from fout-a2-smtp.messagingengine.com ([103.168.172.145]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uGGth-002FFc-05 for pgsql-docs@lists.postgresql.org; Sat, 17 May 2025 12:44:14 +0000 Received: from phl-compute-11.internal (phl-compute-11.phl.internal [10.202.2.51]) by mailfout.phl.internal (Postfix) with ESMTP id 03FCF138026C; Sat, 17 May 2025 08:44:12 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-11.internal (MEProxy); Sat, 17 May 2025 08:44:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm3; t=1747485851; x=1747572251; bh=+vPQBgaxf4 DR+ywyrYR5IbvcSd3VvZRHOZnpMv8ujV8=; b=eVL+ROhEVo6tBkKTMGaXOynKvg oEbpFMBs5ZzJN2s2AfgSW3XpXLwxdIfUOaGONgOPs68mQcxMEmaf9UesM3tBcxDe AhtCy79pAVSrFC2vt1rCV5Spfb4apa2oeBEbP/ZnX76teCte7MW7veLkwuCxrXp5 rz0pSfhj3vdZ76UmweJQ4ux9MMCqvIbCVBGWS5PZeVu68aShI36EzNFkQ+HkAMii HKpV3+4PZepBtNI5BXEv9D68B+4u0UUO+Ny4DKifx2gYVv05g8wTYBh6jRPpp5IH KOoIgOozUGl0/8FUu72/Znb7gB16W7ZjEXbRKKs+QvbYP16mAvjmzqg2pfsA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1747485851; x=1747572251; bh=+vPQBgaxf4DR+ywyrYR5IbvcSd3VvZRHOZn pMv8ujV8=; b=KYwrA9erM42AjlWy5m8j2ehEbXIvYAeelJMDYqD5G6ARazpBl/s ZIzSiBN7rXNodE54Tc2WBTXx7ECX0R6l5dCtiMEzT1qSOuNI6IltCnkoBqJWCR0Q CToABGp5rzFr4JDptNAsnuXil0LRQTs+l/a8CMsPduXLikWScyt4bVg5qnRkHlLb 1wZt/+5zT5zU1KskA7FF3vwu6Gtj4W+g7YKLrAOACCqh96FlzN8fW+iQ9NAEG1bg hEJbgJs+qW3MRnErHke/ddlnmn8/Fx/oYTS4LkjblSNtkr41fSecmMlu7i++ahz3 TlsLnCVaXweZZiPGHgziVnNHn/joeKtPelQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdefudehieehucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucgfrhhlucfvnfffuc dljedtmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddtvdenucfhrhhomhep ofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprghquhhivghrrdighi iiqeenucggtffrrghtthgvrhhnpedvgeduuefhtdeuleettdevjeehheeiveeuieegleet geeljeelieeuieehgeevhfenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiiipdhnsggprhgtphht thhopedvpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopegrtghoiigvnhhssehpih igvghlphhofigvrhdrtghomhdprhgtphhtthhopehpghhsqhhlqdguohgtsheslhhishht shdrphhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 17 May 2025 08:44:11 -0400 (EDT) Date: Sat, 17 May 2025 08:44:09 -0400 From: Michael Paquier To: acozens@pixelpower.com, pgsql-docs@lists.postgresql.org Subject: Re: reindex documentation Message-ID: References: <174733277404.1455388.11471370288789479593@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="+PW0U6iXPl4YuiGS" Content-Disposition: inline In-Reply-To: <174733277404.1455388.11471370288789479593@wrigleys.postgresql.org> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --+PW0U6iXPl4YuiGS Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, May 15, 2025 at 06:12:54PM +0000, PG Doc comments form wrote: > The following paragraph: > "If the index marked INVALID is suffixed ccnew, then it corresponds to the > transient index created during the concurrent operation, and the recommended > recovery method is to drop it using DROP INDEX, then attempt REINDEX > CONCURRENTLY again. If the invalid index is instead suffixed ccold, it > corresponds to the original index which could not be dropped; the > recommended recovery method is to just drop said index, since the rebuild > proper has been successful." > It seems to me that the indexes are suffixed with _ccnew and _ccold not > ccnew and ccold. Also, if _ccnew or _ccold indexes alread exist, an integer > value starting from 1 will be added until a unique index is found - e.g. > _ccnew1, _ccold1, _ccnew2 etc. Right, following the rules defined internally by ChooseRelationName() when creating the new/old indexes in the process. So this could be added. Would you like to suggest a rewording of this sentence for the extra number optionally appended to the suffix if a duplicated entry exists? -- Michael --+PW0U6iXPl4YuiGS Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmgohJkACgkQnvQgOdby QH22ww//cDU1SfwUdOAGYEGL6lJaZWvVc21UZy4nx54XSIuxA89rYn3OIa1xROBk Hu0PSZ7sIdJ3lDIZU6lPyXb67H2O1MPn/vcUoxORhtpj8YaebhI5qx/XNZ8V13jP AKd+yrg4tVQ5BZkrzsRzB4cIIecdXwgagN7/3jOfLH3gGxdcpHLYSHcRWoNL1m1X MIf9v7HsdMlWVUrnrDnorge1mmAqDBmTLALAZ0xZKT4c5UO01EAaL8CnK8RPy4vf azuFEygixjQWXwUz0vApaBBF9on1xKaoI4F08XsZgi0AWrsEKSMtVr0Cy5y2h47U 92VPPnuTB5GfpLG2LEkktrdBH6M7iyJNAOfZsCE2qLwFT7ccCmVcLieLEhV6SO3q sleW1y9Ti0UvDQKy+UHU0uuYzqI5yNnKaMFFKXPpfQPH9xDGnevBoXXRnXN85b5X doUOB/ARnzruYY79qK2SSDhkQxVlxkFfH+Sf2VPWJPJF/CBLXJGL7UrSzXCmIVkf l28lb6cPVUPx8aKNRYHIkSBCvQ1w59xF4PEtOAgieVdbYjhjnCH74o0vq9UIBSWC Oiu3vpsw3BadzrHYbGWGkuwkAthoImURyUiByP17v8X/uAWBp2P/pubOqlpJVIJi UKAK5DBqPKA4hYP5Ljtg8Decq7JEZoVg4FRL+DC6xtbr+Xvbr7w= =LvXU -----END PGP SIGNATURE----- --+PW0U6iXPl4YuiGS--