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.89) (envelope-from ) id 1hEWpw-0004tf-76 for pgsql-hackers@arkaria.postgresql.org; Thu, 11 Apr 2019 10:21:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hEWpu-0008QT-Ab for pgsql-hackers@arkaria.postgresql.org; Thu, 11 Apr 2019 10:21:38 +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 1hEWpu-0008QM-2I for pgsql-hackers@lists.postgresql.org; Thu, 11 Apr 2019 10:21:38 +0000 Received: from ping.uio.no ([2001:700:100:570::196]) by magus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hEWpr-0001Av-LW for pgsql-hackers@lists.postgresql.org; Thu, 11 Apr 2019 10:21:37 +0000 Received: from [2001:700:100:570::211] (helo=dalvik.ping.uio.no ident=Debian-exim) by ping.uio.no with esmtp (Exim 4.72 #1 (Debian)) id 1hEWpm-0001rB-3F; Thu, 11 Apr 2019 12:21:32 +0200 Received: from ilmari by dalvik.ping.uio.no with local (Exim 4.84_2) (envelope-from ) id 1hEWpl-00024r-Rv; Thu, 11 Apr 2019 12:21:29 +0200 From: ilmari@ilmari.org (Dagfinn Ilmari =?utf-8?Q?Manns=C3=A5ker?=) To: Peter Eisentraut Cc: Sergei Kornilov , "pgsql-hackers\@lists.postgresql.org" Subject: Re: REINDEX CONCURRENTLY 2.0 References: <154954968565.11785.6973123402105637191.pgcf@coridan.postgresql.org> <1730471552486423@myt1-cd60b8ae9bb9.qloud-c.yandex.net> <3b33640c-5493-4eea-fd5f-71d37626fe2f@2ndquadrant.com> <1907751553367887@myt6-23299ba78d64.qloud-c.yandex.net> <64744529-d34e-9aae-e7e3-e2263c24fb3b@2ndquadrant.com> <7380711553760479@iva5-0acfc31d2b43.qloud-c.yandex.net> <13fb3e06-3b66-e878-26d8-0d77e7d50160@2ndquadrant.com> Mail-Copies-To: nobody Date: Thu, 11 Apr 2019 11:21:29 +0100 In-Reply-To: <13fb3e06-3b66-e878-26d8-0d77e7d50160@2ndquadrant.com> (Peter Eisentraut's message of "Fri, 29 Mar 2019 08:28:23 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Exiscan-Spam-Score: -3.7 (---) X-Exiscan-Spam-Report: SpamAssassin 3.3.1 (2010-03-16) on pike.ping.uio.no Score Rule * -5.0 PING_UIO_MAIL_IS_INTERNAL Message has never been outside * 129.240.0.0/16 or 193.157.115.0/24 * 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Peter Eisentraut writes: > On 2019-03-28 09:07, Sergei Kornilov wrote: >> Unfortunately patch does not apply due recent commits. Any chance >> this can be fixed (and even committed in pg12)? > > Committed :) I noticed that the docs for how to recover from a failed CREATE INDEX CONCURRENTLY say that «REINDEX does not support concurrent builds», which is no longer true. I was going to just remove the caveat, but then I discovered that REINDEX CONCURRENTLY doesn't work on INVALID indexes (why?). Attached is a patch that instead adjust the claim to say that REINDEX dos not support rebulilding invalid indexess concurrently. - ilmari -- "A disappointingly low fraction of the human race is, at any given time, on fire." - Stig Sandbeck Mathisen --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-Correct-claim-about-REINDEX-CONCURRENTLY-in-CREATE-I.patch From e2de72b348f8a96e24128fc4188bd542eb676610 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dagfinn=20Ilmari=20Manns=C3=A5ker?= Date: Thu, 11 Apr 2019 10:58:47 +0100 Subject: [PATCH] Correct claim about REINDEX CONCURRENTLY in CREATE INDEX CONCURRENTLY docs REINDEX CONCURRENTLY exists, but cannot reindex invalid indexes. --- doc/src/sgml/ref/create_index.sgml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/src/sgml/ref/create_index.sgml b/doc/src/sgml/ref/create_index.sgml index d9d95b20e3..c458f54ef1 100644 --- a/doc/src/sgml/ref/create_index.sgml +++ b/doc/src/sgml/ref/create_index.sgml @@ -557,8 +557,8 @@ method in such cases is to drop the index and try again to perform CREATE INDEX CONCURRENTLY. (Another possibility is to rebuild the index with REINDEX. However, since REINDEX - does not support concurrent builds, this option is unlikely to seem - attractive.) + does not support reindexing invalid indexes concurrently, this option is + unlikely to seem attractive.) -- 2.20.1 --=-=-=--