pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: s.proels@pharmatechnik.de
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #7567: Sequences not properly replicated
Date: Tue, 25 Sep 2012 12:08:47 -0400
Message-ID: <21328.1348589327@sss.pgh.pa.us> (raw)
In-Reply-To: <E1TGS8X-0004KK-RU@wrigleys.postgresql.org>
References: <E1TGS8X-0004KK-RU@wrigleys.postgresql.org>

s.proels@pharmatechnik.de writes:
> The following bug has been logged on the website:
> Bug reference:      7567
> Logged by:          Stefan Pröls
> Email address:      s.proels@pharmatechnik.de
> PostgreSQL version: 9.1.3
> Operating system:   OpenSUSE 11.4 32-Bit
> Description:        

> Scenario:
> 1 Master, 1 Hot-Standby Slave, asynchronous streaming replication, both
> servers PostgreSQL 9.1.3.

The fact that the slave sees the last_value as ahead of the master is
not a bug; you'd have the same last_value on the master if it were to
crash and restart.  (This is due to a tradeoff made long ago to reduce
the amount of WAL traffic created by nextval: only one WAL record is
written per 32 nextval's, and that record claims last_value is 32 ahead
of what it previously was.)

There is a known bug, fixed in 9.1.5, associated with sequences that
have been ALTER'd ... but that's not what you're showing here.

			regards, tom lane




view thread (3+ messages)  latest in thread

Message-ID: <21328.1348589327@sss.pgh.pa.us>
Permalink:  ../21328.1348589327@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/21328.1348589327@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, s.proels@pharmatechnik.de
  Subject: Re: BUG #7567: Sequences not properly replicated
  In-Reply-To: <21328.1348589327@sss.pgh.pa.us>
  References: <E1TGS8X-0004KK-RU@wrigleys.postgresql.org> <21328.1348589327@sss.pgh.pa.us>

* 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