pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Read consistency when using synchronous_commit=off
Date: Wed, 16 Jan 2019 02:46:30 -0600
Message-ID: <788bc40e-a378-11a3-8191-865b5bafe4aa@gmail.com> (raw)
In-Reply-To: <CAA+OQsRsL8nchjg_kJmGBYrO4b5Ana12QgYhNB--BaBXz-nzSQ@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>
	<1547615808.3470705.1635837968.2703BA66@webmail.messagingengine.com>
	<CAA+OQsRsL8nchjg_kJmGBYrO4b5Ana12QgYhNB--BaBXz-nzSQ@mail.gmail.com>


A crash-unsafe database is for data you don't care about.


On 1/16/19 2:27 AM, pshadangi wrote:
> Thanks Ravi for the clarification, we will go ahead with 
> "synchronous_commit=off".
>
> On Wed, Jan 16, 2019 at 10:47 AM Ravi Krishna <srkrishna@fastmail.com 
> <mailto:srkrishna@fastmail.com>> wrote:
>
>     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.
>


-- 
Angular momentum makes the world go 'round.

view thread (8+ messages)

Message-ID: <788bc40e-a378-11a3-8191-865b5bafe4aa@gmail.com>
Permalink:  ../788bc40e-a378-11a3-8191-865b5bafe4aa@gmail.com/
Also on:    postgresql.org/message-id/788bc40e-a378-11a3-8191-865b5bafe4aa@gmail.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: ronljohnsonjr@gmail.com
  Subject: Re: Read consistency when using synchronous_commit=off
  In-Reply-To: <788bc40e-a378-11a3-8191-865b5bafe4aa@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> <1547615808.3470705.1635837968.2703BA66@webmail.messagingengine.com> <CAA+OQsRsL8nchjg_kJmGBYrO4b5Ana12QgYhNB--BaBXz-nzSQ@mail.gmail.com> <788bc40e-a378-11a3-8191-865b5bafe4aa@gmail.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