Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TtVvq-0003Jc-NN for pgsql-bugs@arkaria.postgresql.org; Fri, 11 Jan 2013 04:09:26 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1TtVvq-0005zU-6m for pgsql-bugs@arkaria.postgresql.org; Fri, 11 Jan 2013 04:09:26 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TtVvp-0005yp-1J for pgsql-bugs@postgresql.org; Fri, 11 Jan 2013 04:09:25 +0000 Received: from mahout.postgresql.org ([98.129.198.123]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TtVvl-0005IM-6N for pgsql-bugs@postgresql.org; Fri, 11 Jan 2013 04:09:24 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TtVvj-0005sC-Cs for pgsql-bugs@postgresql.org; Fri, 11 Jan 2013 04:09:20 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1TtVvj-0004B3-2Z for pgsql-bugs@postgresql.org; Fri, 11 Jan 2013 04:09:19 +0000 Date: Fri, 11 Jan 2013 04:09:19 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #7803: Replication Problem(no master is there) To: pgsql-bugs@postgresql.org From: katsumata.tomonari@po.ntts.co.jp X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 7803 Logged by: Tomonari Katsumata Email address: katsumata.tomonari@po.ntts.co.jp PostgreSQL version: 9.2.2 Operating system: RHEL 5.3 x86_64 Description:=20=20=20=20=20=20=20=20 hi, I'm playing with Synchronous Replication on PostgreSQL 9.2.2. And I saw a strange behavior. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D [issues] two standbys are connected on each other, but no master is there. [reproduce] 1. create a master on port 22922 --- postgresql.conf --- wal_level =3D hot_standby archive_mode =3D on archive_command =3D 'cp %p ${PGARC}/%f' max_wal_senders =3D 3 listen_addresses =3D '*' hot_standby =3D on ------------------------ 2. start the master mst$ pg_ctl start 3. create a standby(taking a base backup from master) pg_basebackup -p 22922 -D ${PGDATA} -- recovery.conf -- restore_command =3D 'cp ${PGARC}/%f %p' standby_mode =3D on primary_conninfo =3D 'port=3D22922 application_name=3Dsby' recovery_target_timeline =3D 'newest' ------------------- 4. stop the master mst$ pg_ctl stop 5. make recovery.conf for the master -- recovery.conf -- restore_command =3D 'cp ${PGARC}/%f %p' standby_mode =3D on primary_conninfo =3D 'port=3D23922 application_name=3Dsby' recovery_target_timeline =3D 'newest' ------------------- 6. start the master as standby mst$ pg_ctl start 7. start the standby as standby on port 23922 sby$ pg_ctl start =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D I did not see the situation like above on PostgreSQL 9.1.7. Is this intended change? regards, ----------------- NTT Software Corporation Tomonari Katsumata --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs