Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bOaQC-0003bC-6P for pgsql-bugs@arkaria.postgresql.org; Sun, 17 Jul 2016 00:59:04 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bOaQB-0003VI-CN for pgsql-bugs@arkaria.postgresql.org; Sun, 17 Jul 2016 00:59:03 +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 1bOaQA-0003Uu-JL for pgsql-bugs@postgresql.org; Sun, 17 Jul 2016 00:59:02 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bOaQ3-0001QI-V7 for pgsql-bugs@postgresql.org; Sun, 17 Jul 2016 00:59:01 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u6H0wlTp001151; Sat, 16 Jul 2016 20:58:47 -0400 From: Tom Lane To: Greg Stark cc: Tomasz Ostrowski , PostgreSQL Bugs Subject: Re: Invalid indexes should not consume update overhead In-reply-to: References: <8b57a306-7951-8442-df16-8c581d61b4e6@ato.waw.pl> Comments: In-reply-to Greg Stark message dated "Sun, 17 Jul 2016 01:09:21 +0100" Date: Sat, 16 Jul 2016 20:58:47 -0400 Message-ID: <1150.1468717127@sss.pgh.pa.us> X-Pg-Spam-Score: -3.2 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Greg Stark writes: > The real solution imho is to actually clean up failed index builds when a > build fails. That's what normal transactions do when they abort after all. > This was always the intention but looked like it was going to be a pain and > was put off (ie I was lazy). It's probably just several layers of > PG_TRY/PG_CATCH and closing the failed transactions and opening new ones. No, that wouldn't fix it if the reason the build failed was a crash. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs