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 1gjdZV-00023x-SC for pgsql-general@arkaria.postgresql.org; Wed, 16 Jan 2019 05:17:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gjdZU-0000Ty-7o for pgsql-general@arkaria.postgresql.org; Wed, 16 Jan 2019 05:17:00 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gjdZS-0000Q6-7U for pgsql-general@lists.postgresql.org; Wed, 16 Jan 2019 05:17:00 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gjdZK-0007uC-OR for pgsql-general@lists.postgresql.org; Wed, 16 Jan 2019 05:16:56 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.west.internal (Postfix) with ESMTP id 1461F148D for ; Wed, 16 Jan 2019 00:16:49 -0500 (EST) Received: from web4 ([10.202.2.214]) by compute2.internal (MEProxy); Wed, 16 Jan 2019 00:16:49 -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:in-reply-to:date:subject; s=fm1; bh=Ano xMLyZxCbKvY2V7RjndVkK9nWBRG5sAf2htvSGiC4=; b=RGqp04OmXUMQNV9gq/m FwU/iVjUJco+hBnR5ACgDlS7S54To0+PtsaYwSVthturQ4YYegOtyqZk5j3J/G7k YGuvbApyzGje4nqPbnYBk+ksL7fVQcqBkJZ4R61zAVltxFz2dePMAr1D1omZ5V8A iBFCUn2l5o+EVDYikIro1tHWMZdjgW1LoRxR2/jdL+JR9RYr3X5MvSoTbZX7S8aQ Q8fjv5dI2rSv+HNaMIy9w8YsgIJi9NKQ5dgSXrY0mOZztzUPtyYitHR9OkIf04As SNDwFbGq65VgYnsM/3CmyzwfAYVZBKrnCSuPAgNnmI2u89HV6JORSQ+57axdNhd/ yoA== 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=AnoxMLyZxCbKvY2V7RjndVkK9nWBRG5sAf2htvSGi C4=; b=mK/O88QmlMUs0+sJtAgVZOfmGV21BKQ14osds8kvMll6qJKTJFpWpbso9 Jt5MlAmomETUy1TeT7lfv9htcy8Hb9rZpF8ef0g/Qe8BkdutZFpg6yKcrs+BWHbr qCgWe0vgTiDwNR6FFx99IXU5uCJn8ue1WU6fDmAynI4FzyhbiqZNaFLCcXIYWs2v rk9bgNb9ao8bjTZaeAjfrfwXK0pmpRI5vnhC7HjEVhFVYRb02/nfWxKy52TN2Sjf mQ+Z4I7a164upQ2194TBYVp4sv+vX8T7Kqqk1qcuX5gl9+dx6IkUWBZov7aGSdl7 h9EDvpfqJ74Q7qMmwfx1NUGWFPfOQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedtledrgeeggdeftdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfhuthenuceurghilhhouhhtmecufedt tdenucenucfjughrpefkhffvggfgtgfofhgjfffusegrjeerreertdejnecuhfhrohhmpe ftrghvihcumfhrihhshhhnrgcuoehsrhhkrhhishhhnhgrsehfrghsthhmrghilhdrtgho mheqnecurfgrrhgrmhepmhgrihhlfhhrohhmpehsrhhkrhhishhhnhgrsehfrghsthhmrg hilhdrtghomhenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 99) id 3F3B0BA783; Wed, 16 Jan 2019 00:16:48 -0500 (EST) Message-Id: <1547615808.3470705.1635837968.2703BA66@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="_----------=_154761580834707050" X-Mailer: MessagingEngine.com Webmail Interface - ajax-36e4bfd3 References: <5609bb8f-ee85-5e1b-9cb3-7a4ec5458f81@portavita.eu> <0422a97d-59c6-5812-2ba9-7687c564ad94@portavita.eu> <1547553278.1840928.1635056376.7E488891@webmail.messagingengine.com> In-Reply-To: Date: Wed, 16 Jan 2019 00:16:48 -0500 Subject: Re: Read consistency when using synchronous_commit=off List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --_----------=_154761580834707050 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" Sorry I misunderstood. The term "read consistency" is generally used either in the context of isolation level or in the context of slaves. > We don't have standby instance, as I have mentioned we are using just > one instance of postgres serving local clients running on the same > machine, do you know in this case what is the behavior ?> You are good. All transactions update buffer cache too, along with WAL buffer and hence other sessions can immediately see the changes. synchronous_commit=off will only reduce the fsync calls, which makes them less crash safe, but the database consistency is not compromised. --_----------=_154761580834707050 Content-Transfer-Encoding: 7bit Content-Type: text/html; charset="utf-8"
Sorry I misunderstood.  The term "read consistency" is generally used either in the context of isolation level or in the context of slaves.

We don't have standby instance, as I have mentioned we are using just one instance of postgres serving local clients running on the same machine, do you know in this case what is the behavior ?


You are good.  All transactions update buffer cache too, along with WAL buffer and hence other sessions can immediately see the changes. synchronous_commit=off will only reduce the fsync calls, which makes them less crash safe, but the database consistency is not compromised.
  



--_----------=_154761580834707050--