Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TGXgp-0006EB-OU for pgsql-bugs@postgresql.org; Tue, 25 Sep 2012 16:08:51 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TGXgn-0007XS-Nh for pgsql-bugs@postgresql.org; Tue, 25 Sep 2012 16:08:51 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id q8PG8l8L021329; Tue, 25 Sep 2012 12:08:47 -0400 (EDT) From: Tom Lane To: s.proels@pharmatechnik.de cc: pgsql-bugs@postgresql.org Subject: Re: BUG #7567: Sequences not properly replicated In-reply-to: References: Comments: In-reply-to s.proels@pharmatechnik.de message dated "Tue, 25 Sep 2012 10:13:05 -0000" Date: Tue, 25 Sep 2012 12:08:47 -0400 Message-ID: <21328.1348589327@sss.pgh.pa.us> X-Pg-Spam-Score: -2.7 (--) X-Archive-Number: 201209/265 X-Sequence-Number: 34259 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