Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gjNIs-0003zT-CI for pgsql-general@arkaria.postgresql.org; Tue, 15 Jan 2019 11:54:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gjNIr-0000lQ-1w for pgsql-general@arkaria.postgresql.org; Tue, 15 Jan 2019 11:54:45 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gjNIp-0000lI-Tt for pgsql-general@lists.postgresql.org; Tue, 15 Jan 2019 11:54:44 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gjNIm-0002X5-Gb for pgsql-general@lists.postgresql.org; Tue, 15 Jan 2019 11:54:43 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id AF79227553 for ; Tue, 15 Jan 2019 06:54:38 -0500 (EST) Received: from web4 ([10.202.2.214]) by compute2.internal (MEProxy); Tue, 15 Jan 2019 06:54:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= message-id:from:to:mime-version:content-transfer-encoding :content-type:references:subject:date:in-reply-to; s=fm1; bh=73t PRMWu+HCZqPuCRvNnG0WPVK6+TfidIqEc69tgRfw=; b=qG6aHh0fY9jNgobRKCg GBgpXk+cD3sAi1KbAM2A0zpEV1C/dCxOPxitt5o9T3eFbkgXrm1gp8UUQKsoi6I8 cunSPem7Thk5tOVwSyCmSVptKITupZKwHyUGoWrFld/15W9KhMe0eRtUR73Q8YRT 2iIRjbTE99dg+oXh66RbLEg5aOKE0Jkzx1bdz0nNxDK5neJ+WtM4SO5CquVIDa2T u/0N81pj5s52z7UULRqjrfqthLJi4/7J7Bg+QYIYttGH4VWs+EAIsMQBfmlj19yj MRuH2Ci3A3tow1VYHsCASPrg3tOWAdKtyk/fNKXFowEeyw4M0dunpZrN2lM758gx yMQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=73tPRMWu+HCZqPuCRvNnG0WPVK6+TfidIqEc69tgR fw=; b=jRecaMjhORZY3lJ7/uegJEu/rQWIzaegOXNDrYKflJ1b0XMoMTe8o4hJZ TaZsZlGQxwEQc4IeLI8uYfizZ6SczRON4nTOp5WTmxAo/PinqDDE4Ck9wI2zbqbD 6R3nHFOw7hUmXx3SYbGXxvSGTCQi0LN+v+Qd9oPe+/mDV+0n+AOlpN6FETRNzRl5 As4vq2PE3RIceyOboL4KZ9qZr5HikeaRaACbZ9mlI/hsFQgrbfXIWgkj5XCm4po8 RxvB9JFdH4oeFOjCzVraVHLMyncZrd9FwXWAiJ70P8edy1USRyiYo+WLdrS8HUVM P8cOCwv2HicsamhlLzf9H8kP7hm7A== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedtledrgeefgdefudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfhuthenuceurghilhhouhhtmecufedt tdenucenucfjughrpefkhffvggfgtgfofhfuffgjsegrjeerreertdejnecuhfhrohhmpe ftrghvihcumfhrihhshhhnrgcuoehsrhhkrhhishhhnhgrsehfrghsthhmrghilhdrtgho mheqnecurfgrrhgrmhepmhgrihhlfhhrohhmpehsrhhkrhhishhhnhgrsehfrghsthhmrg hilhdrtghomhenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 99) id 5344FBA783; Tue, 15 Jan 2019 06:54:38 -0500 (EST) Message-Id: <1547553278.1840928.1635056376.7E488891@webmail.messagingengine.com> From: Ravi Krishna To: pgsql-general@lists.postgresql.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: multipart/alternative; boundary="_----------=_154755327818409280" X-Mailer: MessagingEngine.com Webmail Interface - ajax-36e4bfd3 References: <5609bb8f-ee85-5e1b-9cb3-7a4ec5458f81@portavita.eu> <0422a97d-59c6-5812-2ba9-7687c564ad94@portavita.eu> Subject: Re: Read consistency when using synchronous_commit=off Date: Tue, 15 Jan 2019 06:54:38 -0500 In-Reply-To: <0422a97d-59c6-5812-2ba9-7687c564ad94@portavita.eu> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --_----------=_154755327818409280 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" > I m not sure other clients are able to read from WAL buffer, therefore > i m not sure the data is available to other clients at that specific > point in time. No. On the standby the buffer cache has to be populated with the updates before other client sessions can read it. AFAIK other client sessions do not read WAL buffers. That is why synchronous_commit=ON option is there. --_----------=_154755327818409280 Content-Transfer-Encoding: 7bit Content-Type: text/html; charset="utf-8"

> I m not sure other clients are able to read from WAL buffer, therefore i m not sure the data is
> available to other clients at that specific point in time.

No.  On the standby the buffer cache has to be populated with the updates before other client sessions can read it.  AFAIK other client sessions do not read WAL buffers.

That is why synchronous_commit=ON option is there.


--_----------=_154755327818409280--