Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wsx6V-00011O-Cm for pgsql-bugs@arkaria.postgresql.org; Fri, 06 Jun 2014 16:34:55 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Wsx6U-00032p-S9 for pgsql-bugs@arkaria.postgresql.org; Fri, 06 Jun 2014 16:34:54 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Wsx6T-00032c-Ti for pgsql-bugs@postgresql.org; Fri, 06 Jun 2014 16:34:53 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wsx6L-00080w-9e for pgsql-bugs@postgresql.org; Fri, 06 Jun 2014 16:34:52 +0000 Received: from intern.anarazel.de (p5DDC7FF0.dip0.t-ipconnect.de [93.220.127.240]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id 46DA04E8006; Fri, 6 Jun 2014 18:34:43 +0200 (CEST) Date: Fri, 6 Jun 2014 18:34:42 +0200 From: Andres Freund To: hannes.janetzek@gmail.com Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #10542: infinite loop in index.c when trying to reindex system tables (probably corrupted db state) Message-ID: <20140606163442.GE10482@alap3.anarazel.de> References: <20140605230056.3066.26092@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140605230056.3066.26092@wrigleys.postgresql.org> X-Pg-Spam-Score: -2.6 (--) 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 Hi, On 2014-06-05 23:00:56 +0000, hannes.janetzek@gmail.com wrote: > While trying to get our database working again after a forced shutdown the > reindexing of the system tables in single user mode went into an infinite > loop. what happened in that infinite loop? The log excerpt below doesn't show one? Is it constantly echoing a message? could you explain how you got into the bad state? Are you using fsync=off? > I can just roughly guess that between the lines: > https://github.com/postgres/postgres/blob/REL9_3_STABLE/src/backend/catalog/index.c#L2260- > L2385 > the function is assuming that another process tries to delete a tuple that > is about to be indexed (even though in single user mode this should probably > not be possible) We've recently fixed a bug around that - but I don't immediately see how it could be applicable in that scenario. Greetings, Andres Freund -- Andres Freund http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs