pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: stefan.proels@pharmatechnik.de
To: pgsql-bugs@postgresql.org
Subject: BUG #7566: Sequences not properly replicated
Date: Tue, 25 Sep 2012 08:12:05 +0000
Message-ID: <E1TGQFR-00081W-Gf@wrigleys.postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      7566
Logged by:          Stefan Pröls
Email address:      stefan.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.

===Master:================================================================================================================================
$ CREATE SEQUENCE t_seq;

$ SELECT * FROM t_seq;
 sequence_name | last_value | start_value | increment_by |      max_value   
  | min_value | cache_value | log_cnt | is_cycled | is_called 
---------------+------------+-------------+--------------+---------------------+-----------+-------------+---------+-----------+-----------
 t_seq         |          1 |           1 |            1 |
9223372036854775807 |         1 |           1 |       1 | f         | f

===Slave:=================================================================================================================================
$ SELECT * FROM t_seq;
 sequence_name | last_value | start_value | increment_by |      max_value   
  | min_value | cache_value | log_cnt | is_cycled | is_called 
---------------+------------+-------------+--------------+---------------------+-----------+-------------+---------+-----------+-----------
 t_seq         |          1 |           1 |            1 |
9223372036854775807 |         1 |           1 |       0 | f         | t

===Master:================================================================================================================================
$ SELECT nextval('t_seq');
 nextval 
---------
       1

$ SELECT * FROM t_seq;
 sequence_name | last_value | start_value | increment_by |      max_value   
  | min_value | cache_value | log_cnt | is_cycled | is_called 
---------------+------------+-------------+--------------+---------------------+-----------+-------------+---------+-----------+-----------
 t_seq         |          1 |           1 |            1 |
9223372036854775807 |         1 |           1 |       0 | f         | t

===Slave:=================================================================================================================================
$ SELECT * FROM t_seq;
 sequence_name | last_value | start_value | increment_by |      max_value   
  | min_value | cache_value | log_cnt | is_cycled | is_called 
---------------+------------+-------------+--------------+---------------------+-----------+-------------+---------+-----------+-----------
 t_seq         |          1 |           1 |            1 |
9223372036854775807 |         1 |           1 |       0 | f         | t

===Master:================================================================================================================================
$ SELECT nextval('t_seq');
 nextval 
---------
       2

$ SELECT * FROM t_seq;
 sequence_name | last_value | start_value | increment_by |      max_value   
  | min_value | cache_value | log_cnt | is_cycled | is_called 
---------------+------------+-------------+--------------+---------------------+-----------+-------------+---------+-----------+-----------
 t_seq         |          2 |           1 |            1 |
9223372036854775807 |         1 |           1 |      32 | f         | t

===Slave:=================================================================================================================================
$ SELECT * FROM t_seq;
 sequence_name | last_value | start_value | increment_by |      max_value   
  | min_value | cache_value | log_cnt | is_cycled | is_called 
---------------+------------+-------------+--------------+---------------------+-----------+-------------+---------+-----------+-----------
 t_seq         |         34 |           1 |            1 |
9223372036854775807 |         1 |           1 |       0 | f         | t
 





Message-ID: <E1TGQFR-00081W-Gf@wrigleys.postgresql.org>
Permalink:  ../E1TGQFR-00081W-Gf@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/E1TGQFR-00081W-Gf@wrigleys.postgresql.org

 · 

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: stefan.proels@pharmatechnik.de
  Subject: Re: BUG #7566: Sequences not properly replicated
  In-Reply-To: <E1TGQFR-00081W-Gf@wrigleys.postgresql.org>
  References: <E1TGQFR-00081W-Gf@wrigleys.postgresql.org>

* 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