Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1jEZlU-00036A-Jo for pgsql-hackers@arkaria.postgresql.org; Wed, 18 Mar 2020 14:33:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jEZlT-0005Xt-C2 for pgsql-hackers@arkaria.postgresql.org; Wed, 18 Mar 2020 14:33:47 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1jEZlT-0005Xl-0X for pgsql-hackers@lists.postgresql.org; Wed, 18 Mar 2020 14:33:47 +0000 Received: from mail-lj1-x22f.google.com ([2a00:1450:4864:20::22f]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jEZlQ-0002Lb-O6 for pgsql-hackers@postgresql.org; Wed, 18 Mar 2020 14:33:46 +0000 Received: by mail-lj1-x22f.google.com with SMTP id r7so27306673ljp.10 for ; Wed, 18 Mar 2020 07:33:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition; bh=QFttdh4leSwBuE+N0HCI/UsEDORfW+VZbcghfVngO6I=; b=jq61hnTifEhSXr+55tcLKBiMwPXpVRqLeMaXRCQaFl+6OGfJVmPZxu0UzCVV7spF2i YskPeaXkB+QZ4Vjzj9U68lZew6ApAt1/oR5xFghY59DQZrpEHw+biizsgZalmPQ/a0S5 Q8te/3fvF+vDgMui+KU2cEdmiiVp47UvhSNBUGeAFcZ3zdXU2VtlF8iSK0KatnzBpNG5 DI/2QKrw3ukOsCiCAF4PzaECM/RWf5aOhjaxMl+tguosRSjCL/t2WfBsJWOYj8p++ssG LVea3s/WSIjZX8byb1SzLTHE7nSIVdGLU+ghPHbOqC0sEOIujK6s7MF3tZt34AhYHXP+ FmHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=QFttdh4leSwBuE+N0HCI/UsEDORfW+VZbcghfVngO6I=; b=biN0476/RYBJGy9cTML+ITsug5xAU1P7aP8Br9J8JOShsdB3hQcXaIP9LDdq0nIy49 geCCAmkzaHwnXTYLYlbPtbz9MSR7RbxGL6G6lgIvvSo68Ekuypw6RAKeZW8REatDOv1Z ET28L1eMIf2Xz6MDrduONYaSoJqy1VAYQsWvWMBEYm0hjSyQOsIqCy2QQ3GPW6pyiCFP E/pN8HgI0m4TnNQzm1ZM4ezM2GfZ8dGgzMn4zumT8CfbyfvIWN2LxJcLuELHlW6GBGl1 6DC0LsUlson73oEIS4qNutgrn52BBQcSHlw4wle7KYjYUr7SqAIrJqopLxKd6YnG7YT2 6FEA== X-Gm-Message-State: ANhLgQ3987vH6AgSPSypuN4osX2R6BMYlxyb1qgHNRuKxQ9CWsG8P062 jYyWzJngdEKMjlNFlDtbVQef6N1j X-Google-Smtp-Source: ADFU+vvWi2mESwSOEtGXs+NFHRBqumi0LuCPSzJ47YxkdTyy0aitVWEQZtCUQi+QIzIizoIY8A1EOA== X-Received: by 2002:a05:651c:10f:: with SMTP id a15mr2731393ljb.158.1584542023346; Wed, 18 Mar 2020 07:33:43 -0700 (PDT) Received: from nol (82-64-124-11.subs.proxad.net. [82.64.124.11]) by smtp.gmail.com with ESMTPSA id t8sm4828807lfe.46.2020.03.18.07.33.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Mar 2020 07:33:42 -0700 (PDT) Date: Wed, 18 Mar 2020 15:33:40 +0100 From: Julien Rouhaud To: pgsql-hackers@postgresql.org Cc: peter.eisentraut@2ndquadrant.com Subject: Thinko in index_concurrently_swap comment Message-ID: <20200318143340.GA46897@nol> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="PEIAKu/WMn1b1Hv9" Content-Disposition: inline List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --PEIAKu/WMn1b1Hv9 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, While looking at RIC for the collation versioning issue Michael raised earlier, I found a thinko in a nearby comment, apparently introduced in the original REINDEX CONCURRENTLY patch (5dc92b8). Trivial patch attached. --PEIAKu/WMn1b1Hv9 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="0001-Fix-comment-in-index_concurrently_swap.patch" From 161ea86380a50caeee8de81fe82d6eb106a2fd39 Mon Sep 17 00:00:00 2001 From: Julien Rouhaud Date: Wed, 18 Mar 2020 15:16:35 +0100 Subject: [PATCH] Fix comment in index_concurrently_swap() --- src/backend/catalog/index.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/catalog/index.c b/src/backend/catalog/index.c index 76fd938ce3..023ec7e618 100644 --- a/src/backend/catalog/index.c +++ b/src/backend/catalog/index.c @@ -1531,7 +1531,7 @@ index_concurrently_swap(Oid newIndexId, Oid oldIndexId, const char *oldName) newIndexForm->indisclustered = oldIndexForm->indisclustered; /* - * Mark the old index as valid, and the new index as invalid similarly + * Mark the new index as valid, and the old index as invalid similarly * to what index_set_state_flags() does. */ newIndexForm->indisvalid = true; -- 2.20.1 --PEIAKu/WMn1b1Hv9--