Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XYVex-0000uZ-Hj for pgsql-bugs@arkaria.postgresql.org; Mon, 29 Sep 2014 07:46:15 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XYVex-0002Fa-00 for pgsql-bugs@arkaria.postgresql.org; Mon, 29 Sep 2014 07:46:15 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XYVev-0002FQ-31 for pgsql-bugs@postgresql.org; Mon, 29 Sep 2014 07:46:13 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XYVen-0006ce-LC for pgsql-bugs@postgresql.org; Mon, 29 Sep 2014 07:46:11 +0000 MIME-Version: 1.0 Subject: BUG #11517: the pg_stat_replication.sync_stat show sync when synchronous_commit is set to be off To: pgsql-bugs@postgresql.org From: amutu@amutu.com Date: Mon, 29 Sep 2014 07:45:52 +0000 Message-ID: <20140929074552.17173.32414@wrigleys.postgresql.org> X-Pg-Spam-Score: -1.9 (-) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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: 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