Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id A971D1337B9C for ; Fri, 11 Feb 2011 13:59:55 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 54077-06 for ; Fri, 11 Feb 2011 17:59:48 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 34F071337B9E for ; Fri, 11 Feb 2011 13:59:48 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p1BHxk9R010547; Fri, 11 Feb 2011 12:59:46 -0500 (EST) To: "lou fridkis" cc: pgsql-bugs@postgresql.org Subject: Re: BUG #5882: last_value of sequence on replicated properly In-reply-to: <201102111639.p1BGdbgc098696@wwwmaster.postgresql.org> References: <201102111639.p1BGdbgc098696@wwwmaster.postgresql.org> Comments: In-reply-to "lou fridkis" message dated "Fri, 11 Feb 2011 16:39:37 +0000" Date: Fri, 11 Feb 2011 12:59:45 -0500 Message-ID: <10546.1297447185@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=2.409 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FS_REPLICA=3.599, SARE_SPEC_REPLICA=0.72, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: ** X-Archive-Number: 201102/113 X-Sequence-Number: 29385 "lou fridkis" writes: > The problem is that the values for loutest1_lou_id_seq are different > after the test: This is expected. The slave may have a larger value than the primary. It's because of the way that WAL logging for nextval() works. regards, tom lane