Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VwU2y-0002XK-Sf for pgsql-bugs@arkaria.postgresql.org; Fri, 27 Dec 2013 09:49:37 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VwU2y-0001Yf-4H for pgsql-bugs@arkaria.postgresql.org; Fri, 27 Dec 2013 09:49:36 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VwU2x-0001YY-0q for pgsql-bugs@postgresql.org; Fri, 27 Dec 2013 09:49:35 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VwU2u-0001V8-0T for pgsql-bugs@postgresql.org; Fri, 27 Dec 2013 09:49:34 +0000 Received: from intern.anarazel.de (p549F1C30.dip0.t-ipconnect.de [84.159.28.48]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id 3D2554F0001; Fri, 27 Dec 2013 10:49:31 +0100 (CET) Date: Fri, 27 Dec 2013 10:49:30 +0100 From: Andres Freund To: launchpad@maletin.de Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #8680: Fix initialization of pg_clog and pg_subtrans during hot standby startup Message-ID: <20131227094930.GB25163@alap2.anarazel.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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 2013-12-13 10:50:12 +0000, launchpad@maletin.de wrote: > A table has a primary key. > We use pg_basebackup to start a > streaming replication server. > after a trigger, this standby is > used as master and the primary key > is shown as valid and there are no > duplicates. > > > alter table t add column c int4 not null default 0; > FEHLER: konnte Unique Index »t_pkey« nicht erstellen > DETAIL: Schlüssel (username, authority)=(malu001, ROLE_STEUER) ist doppelt > vorhanden. > > > It looks like a bug that is fixed in > 9.2.6, but i can't believe, that this > bug was introduced in 9.2.5, because we > can reproduce this with 9.2.4. > But only with massive work while the > basebackup is in progress. I don't think this is necessarily related. How are you performing the base backup? I guess you're not using pg_basebackup? 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