Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dS8bP-0007bt-PQ for pgsql-docs@arkaria.postgresql.org; Mon, 03 Jul 2017 21:09:51 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dS8bJ-0002vI-7R for pgsql-docs@arkaria.postgresql.org; Mon, 03 Jul 2017 21:09:45 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dRaDx-0004W9-Ua for pgsql-docs@postgresql.org; Sun, 02 Jul 2017 08:27:22 +0000 Received: from mail.postgrespro.ru ([93.174.131.138]) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dRaDu-0003Yf-Sa for pgsql-docs@postgresql.org; Sun, 02 Jul 2017 08:27:20 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.postgrespro.ru (Postfix) with ESMTP id 6846621C0695; Sun, 2 Jul 2017 11:27:16 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at postgrespro.ru Received: from ars-thinkpad (nat03-43-2.netorn.net [188.35.130.88]) by mail.postgrespro.ru (Postfix) with ESMTPSA id 405B621C032C; Sun, 2 Jul 2017 11:27:16 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mail; t=1498984036; bh=g2r2vuKCcLMvJQ30eNaBbTtTHiSavlOzSE3pMcQcw1w=; h=From:To:Cc:Subject:References:Date:In-Reply-To; b=BicKDW/AgSktCOP2GZmC6bnSjuEpXi7gXFdiP9Gkq+fWEMgnegrfx5nv8g4+dsdpp aQSiU+J38aU8m6SuTq69sE66fWBkT/XbhDmJo4F4XCaFTlFd2snnCsSjDiTKDcPzK9 r5CxYwjLkx2VEYx5pSQfRZQg8msRCw8iyHJKWoyY= From: Arseny Sher To: Peter Eisentraut Cc: pgsql-docs@postgresql.org Subject: Re: Synchronous logical replication? References: <877ezznax1.fsf@ars-thinkpad> <7fb9fc7c-72f7-f9ef-3896-9cc7e4fd13b0@2ndquadrant.com> Date: Sun, 02 Jul 2017 11:27:15 +0300 In-Reply-To: <7fb9fc7c-72f7-f9ef-3896-9cc7e4fd13b0@2ndquadrant.com> (Peter Eisentraut's message of "Sun, 2 Jul 2017 00:19:44 -0400") Message-ID: <87a84nnt0c.fsf@ars-thinkpad> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-docs Precedence: bulk Sender: pgsql-docs-owner@postgresql.org Peter Eisentraut writes: > The reason for this confusion is that synchronous_commit has both a > local and a remote meaning, and in this case the local meaning on the > subscriber has an impact on the remote meaning of the publisher. And another, if I get it right, is that while asynchronous commit makes server report 'success' faster, it also makes the actual WAL writing to the disk *slower* in terms of latency, because this action is delayed for some arbitrary time (well, to be exactly, up to 3*wal_writer_delay milliseconds). As for synchronous commit, its WAL is written as soon as possible, though I am not sure which guarantees exist here -- walwriter is woken up each wal_writer_delay ms, but it seems to write only fully completed pages under heavy load. Please correct me if I am wrong. In general, it's clear now, thanks. -- Arseny Sher -- Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-docs