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 1i34Yn-0001kb-0I for pgsql-general@arkaria.postgresql.org; Wed, 28 Aug 2019 20:28:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i34Yl-0006iF-Mw for pgsql-general@arkaria.postgresql.org; Wed, 28 Aug 2019 20:28:51 +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 1i34Yl-0006i8-7b for pgsql-general@lists.postgresql.org; Wed, 28 Aug 2019 20:28:51 +0000 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i34Yh-000522-VH for pgsql-general@lists.postgresql.org; Wed, 28 Aug 2019 20:28:50 +0000 Received: by mail-wr1-x441.google.com with SMTP id u16so1142946wrr.0 for ; Wed, 28 Aug 2019 13:28:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=cp4amZx0gv2PsNZHc6XVWTgwZKcoILb97yiqrYGcIhU=; b=rcQk3ovckclMl/wS7/VNAvsJImYFqmwiwzFTt/32vwtlPwsoSgl/l5serc32y+V+y0 /mfXjmE45nncrRHMWLKBMvVFsv6JvKiTD25vEZlmrWk7mtHDNiggtyil2bk7hlM0IRJM moVRasiJVJieMEOP8IyuvNKowVy39EwPWtUgyJsCIFqZHQg/+ZoMVmhyRRiVXtoTUSug vTkVL+V1e/PNkABCLAApqAYVjuzKBDrqR65DxteroY8VyA5FXe+YVBCqrgg0MxjY4B9q r7n6bobpzCJltPZRMnENkL2/tABMMp7UB4DhUkPU2nQgJe7vcdslpoUZ65v4ovUR02ql nEnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=cp4amZx0gv2PsNZHc6XVWTgwZKcoILb97yiqrYGcIhU=; b=Dg4C6dKOmabRHj2aRrvqVJb623oKDjwbmx6Qx6nygmORIVP+Hhfp8/MB1qhFw0z1RB 186qkLvmRgu2ETv9UlpgXXWe1Bc0D22VQxrNz82FAt0W476RmG7vb2KU0aBK2EfFvsmz KgPiCterVAt7MzMDFisfFrrtvv8+Qwd2A0Acibe/jNmjMBu7Ax5P6Whg3lZvbMgFhZYc llNE4d/k8FzjVAwoEZ9w3SnuQKHLzaz1wBKh3lzNydaO+hGIyap/pHlmtlgAOJE8c7I0 OHDmdmiACwe9FsUwvryWqb77FmCqOvaKedDQZrPyiyeksP6AkRSs6VKiQLr4B+Zu1I7z Awmw== X-Gm-Message-State: APjAAAXLAeFmKk2d5WwWsw3J7GBYFBKHUiPG2hQNlmPlnLC5z9IAvE+A JiRpBGA2NQFg447SL+aTdJRjXQ== X-Google-Smtp-Source: APXvYqy7zhmSEzhmgm9YDdUucsahKbfEkuD1draMyWArk9Dq2emI+3h7y6iKWN/EvMUmp81w/OdrUA== X-Received: by 2002:adf:dbcd:: with SMTP id e13mr6667476wrj.314.1567024126763; Wed, 28 Aug 2019 13:28:46 -0700 (PDT) Received: from localhost.localdomain (217-149-172-217.nat.highway.telekom.at. [217.149.172.217]) by smtp.gmail.com with ESMTPSA id o17sm216433wrx.60.2019.08.28.13.28.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Aug 2019 13:28:46 -0700 (PDT) Message-ID: <194a33666ebd5b24f29385c8e29aef454697d992.camel@cybertec.at> Subject: Re: [ext] Re: Pointers towards identifying bulk import bottleneck (walwriter tuning?) From: Laurenz Albe To: Michael Lewis Cc: "Holtgrewe, Manuel" , Luca Ferrari , pgsql-general Date: Wed, 28 Aug 2019 22:28:45 +0200 In-Reply-To: References: <6fae1020051d2de8646c724ba782229af8323e7a.camel@cybertec.at> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.32.4 (3.32.4-1.fc30) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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