Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cjdDF-0008II-2G for pgsql-hackers@arkaria.postgresql.org; Fri, 03 Mar 2017 02:44:57 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cjdDE-0002XR-EL for pgsql-hackers@arkaria.postgresql.org; Fri, 03 Mar 2017 02:44:56 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cjdDD-0002W3-7K for pgsql-hackers@postgresql.org; Fri, 03 Mar 2017 02:44:55 +0000 Received: from kilimanjaro.scorpionshops.com ([82.118.24.83]) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cjdDA-0002e9-NZ for pgsql-hackers@postgresql.org; Fri, 03 Mar 2017 02:44:53 +0000 Received: from [192.168.1.168] (92-32-205-96.tn.glocalnet.net [92.32.205.96]) by kilimanjaro.scorpionshops.com (Postfix) with ESMTPSA id 986607BC668; Fri, 3 Mar 2017 03:44:49 +0100 (CET) Subject: Re: REINDEX CONCURRENTLY 2.0 To: Jim Nasby , Michael Paquier , PostgreSQL mailing lists References: From: Andreas Karlsson Message-ID: <3ed671c8-0b03-e42a-710e-b50bb91b79fe@proxel.se> Date: Fri, 3 Mar 2017 03:44:49 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -0.4 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 03/02/2017 02:25 AM, Jim Nasby wrote: > On 2/28/17 11:21 AM, Andreas Karlsson wrote: >> The only downside I can see to this approach is that we no logner will >> able to reindex catalog tables concurrently, but in return it should be >> easier to confirm that this approach can be made work. > > Another downside is any stored regclass fields will become invalid. > Admittedly that's a pretty unusual use case, but it'd be nice if there > was at least a way to let users fix things during the rename phase > (perhaps via an event trigger). Good point, but I agree with Andres here. Having REINDEX CONCURRENTLY issue event triggers seems strange to me. While it does create and drop indexes as part of its implementation, it is actually just an index maintenance job. Andreas -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers