pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: amutu@amutu.com
To: pgsql-bugs@postgresql.org
Subject: BUG #11517: the pg_stat_replication.sync_stat show sync when synchronous_commit is set to be off
Date: Mon, 29 Sep 2014 07:45:52 +0000
Message-ID: <20140929074552.17173.32414@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

The following bug has been logged on the website:

Bug reference:      11517
Logged by:          the pg_stat_replication.sync_stat show sync when synchronous_commit is set
to be off
Email address:      amutu@amutu.com
PostgreSQL version: 9.2.4
Operating system:   suse linux 10 x86_64
Description:        

from the doc,when synchronous_commit set to off or local,the commit will not
wait the remote slave reveive data,so it is not asynchronous replication.but
I find the pg_stat_replication wrongly report the sync_stat to sync.This can
be confused for people.

postgres=# select * from pg_stat_replication ;
-[ RECORD 1 ]----+------------------------------
pid              | 3213
usesysid         | 16387
usename          | rep
application_name | sync_slave
client_addr      | 172.25.38.154
client_hostname  | 
client_port      | 54333
backend_start    | 2014-09-29 15:17:19.927457+08
state            | streaming
sent_location    | 21/A0F01C0
write_location   | 21/A0F01C0
flush_location   | 21/A0F01C0
replay_location  | 21/A0EFC88
sync_priority    | 1
sync_state       | sync

postgres=# show synchronous_standby_names ;
-[ RECORD 1 ]-------------+-----------------------
synchronous_standby_names | sync_slave,walreceiver


postgres=# show synchronous_commit ;          
-[ RECORD 1 ]------+----
synchronous_commit | off


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (3+ messages)  latest in thread

Message-ID: <20140929074552.17173.32414@wrigleys.postgresql.org>
Permalink:  ../20140929074552.17173.32414@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/20140929074552.17173.32414@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: amutu@amutu.com
  Subject: Re: BUG #11517: the pg_stat_replication.sync_stat show sync when synchronous_commit is set to be off
  In-Reply-To: <20140929074552.17173.32414@wrigleys.postgresql.org>
  References: <20140929074552.17173.32414@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