pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ravi Krishna <srkrishna@fastmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Read consistency when using synchronous_commit=off
Date: Wed, 16 Jan 2019 00:16:48 -0500
Message-ID: <1547615808.3470705.1635837968.2703BA66@webmail.messagingengine.com> (raw)
In-Reply-To: <CAA+OQsQAQtN8Wk+PACjMxBz-5FzRSpcEp8MYb3Sx=R=qJsvNRg@mail.gmail.com>
References: <CAA+OQsSRuQX8vaDV0=v5x9U0Vcj_1G71aTCQ7wx+YBE==uHvEQ@mail.gmail.com>
	<5609bb8f-ee85-5e1b-9cb3-7a4ec5458f81@portavita.eu>
	<0422a97d-59c6-5812-2ba9-7687c564ad94@portavita.eu>
	<1547553278.1840928.1635056376.7E488891@webmail.messagingengine.com>
	<CAA+OQsQAQtN8Wk+PACjMxBz-5FzRSpcEp8MYb3Sx=R=qJsvNRg@mail.gmail.com>

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.  

view thread (8+ messages)  latest in thread

Message-ID: <1547615808.3470705.1635837968.2703BA66@webmail.messagingengine.com>
Permalink:  ../1547615808.3470705.1635837968.2703BA66@webmail.messagingengine.com/
Also on:    postgresql.org/message-id/1547615808.3470705.1635837968.2703BA66@webmail.messagingengine.com

 · 

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-general@postgresql.org
  Cc: srkrishna@fastmail.com
  Subject: Re: Read consistency when using synchronous_commit=off
  In-Reply-To: <1547615808.3470705.1635837968.2703BA66@webmail.messagingengine.com>
  References: <CAA+OQsSRuQX8vaDV0=v5x9U0Vcj_1G71aTCQ7wx+YBE==uHvEQ@mail.gmail.com> <5609bb8f-ee85-5e1b-9cb3-7a4ec5458f81@portavita.eu> <0422a97d-59c6-5812-2ba9-7687c564ad94@portavita.eu> <1547553278.1840928.1635056376.7E488891@webmail.messagingengine.com> <CAA+OQsQAQtN8Wk+PACjMxBz-5FzRSpcEp8MYb3Sx=R=qJsvNRg@mail.gmail.com> <1547615808.3470705.1635837968.2703BA66@webmail.messagingengine.com>

* 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