Re: BUG #8680: Fix initialization of pg_clog and pg_subtrans during hot standby startup

From: Andres Freund <andres(at)2ndquadrant(dot)com>
To: launchpad(at)maletin(dot)de
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #8680: Fix initialization of pg_clog and pg_subtrans during hot standby startup
Date: 2013-12-27 09:49:30
Message-ID: 20131227094930.GB25163@alap2.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hi,

On 2013-12-13 10:50:12 +0000, launchpad(at)maletin(dot)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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Erik Rijkers 2013-12-27 22:14:17 to_number nl_NL.utf8
Previous Message eshkinkot 2013-12-27 00:00:37 BUG #8702: psql \df+ translate_columns[] overflow and unexpected gettext translation