pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Michael Lewis <mlewis@entrata.com>
Cc: Holtgrewe, Manuel <manuel.holtgrewe@bihealth.de>
Cc: Luca Ferrari <fluca1978@gmail.com>
Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: [ext] Re: Pointers towards identifying bulk import bottleneck (walwriter tuning?)
Date: Wed, 28 Aug 2019 22:28:45 +0200
Message-ID: <194a33666ebd5b24f29385c8e29aef454697d992.camel@cybertec.at> (raw)
In-Reply-To: <CAHOFxGqmM5i_z_urcFGoAq0tTd4MVQ+wGNyinWzN1USmQVxQWg@mail.gmail.com>
References: <CC941ED861F3AA469B6D50EE76C57483015EABBC14@s-mx14-bih01.charite.de>
	<CAKoxK+6t5JgLwOUq+kCkp9i9g6c4CyTm8mkuigS9GBqtaTUMAg@mail.gmail.com>
	<CC941ED861F3AA469B6D50EE76C57483015EAC0D75@s-mx14-bih01.charite.de>
	<6fae1020051d2de8646c724ba782229af8323e7a.camel@cybertec.at>
	<CAHOFxGqmM5i_z_urcFGoAq0tTd4MVQ+wGNyinWzN1USmQVxQWg@mail.gmail.com>

On Wed, 2019-08-28 at 12:27 -0600, Michael Lewis wrote:
> > You can do almost as good by setting "synchronous_commit = off",
> > and that is crash-safe.
> 
> It seems like it depends on your definition of crash-safe. Data loss
> can occur but not data corruption, right?

Right.

> Do you know any ballpark for how much difference in performance it
> makes to turn off synchronous_commit or what type of hardware or
> usage it would make the biggest (or least) difference?

In my experience, the performance will be almost as good as
with fsync=off, which is as good as it gets.

For an exact answer for your specific system, run a simple benchmark.

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com






view thread (9+ messages)

Message-ID: <194a33666ebd5b24f29385c8e29aef454697d992.camel@cybertec.at>
Permalink:  ../194a33666ebd5b24f29385c8e29aef454697d992.camel@cybertec.at/
Also on:    postgresql.org/message-id/194a33666ebd5b24f29385c8e29aef454697d992.camel@cybertec.at

 · 

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: laurenz.albe@cybertec.at, mlewis@entrata.com, manuel.holtgrewe@bihealth.de, fluca1978@gmail.com
  Subject: Re: [ext] Re: Pointers towards identifying bulk import bottleneck (walwriter tuning?)
  In-Reply-To: <194a33666ebd5b24f29385c8e29aef454697d992.camel@cybertec.at>
  References: <CC941ED861F3AA469B6D50EE76C57483015EABBC14@s-mx14-bih01.charite.de> <CAKoxK+6t5JgLwOUq+kCkp9i9g6c4CyTm8mkuigS9GBqtaTUMAg@mail.gmail.com> <CC941ED861F3AA469B6D50EE76C57483015EAC0D75@s-mx14-bih01.charite.de> <6fae1020051d2de8646c724ba782229af8323e7a.camel@cybertec.at> <CAHOFxGqmM5i_z_urcFGoAq0tTd4MVQ+wGNyinWzN1USmQVxQWg@mail.gmail.com> <194a33666ebd5b24f29385c8e29aef454697d992.camel@cybertec.at>

* 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