pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@2ndquadrant.com>
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)
Date: Fri, 6 Jun 2014 18:34:42 +0200
Message-ID: <20140606163442.GE10482@alap3.anarazel.de> (raw)
In-Reply-To: <20140605230056.3066.26092@wrigleys.postgresql.org>
References: <20140605230056.3066.26092@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

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



view thread (4+ messages)  latest in thread

Message-ID: <20140606163442.GE10482@alap3.anarazel.de>
Permalink:  ../20140606163442.GE10482@alap3.anarazel.de/
Also on:    postgresql.org/message-id/20140606163442.GE10482@alap3.anarazel.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: andres@2ndquadrant.com, hannes.janetzek@gmail.com
  Subject: Re: BUG #10542: infinite loop in index.c when trying to reindex system tables (probably corrupted db state)
  In-Reply-To: <20140606163442.GE10482@alap3.anarazel.de>
  References: <20140605230056.3066.26092@wrigleys.postgresql.org> <20140606163442.GE10482@alap3.anarazel.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox