Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1avNAR-0004u9-9j for pgsql-hackers@arkaria.postgresql.org; Wed, 27 Apr 2016 10:58:03 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1avNAQ-0001HG-OH for pgsql-hackers@arkaria.postgresql.org; Wed, 27 Apr 2016 10:58:02 +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_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1avNAP-0001Fp-Od for pgsql-hackers@postgresql.org; Wed, 27 Apr 2016 10:58:01 +0000 Received: from raven.toroid.org ([178.63.84.200]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1avNAM-0000pV-Vl for pgsql-hackers@postgresql.org; Wed, 27 Apr 2016 10:58:01 +0000 Received: from kea.toroid.org (unknown [10.9.8.10]) by raven.toroid.org (Postfix) with ESMTP id 6E0BBE500AE; Wed, 27 Apr 2016 12:57:58 +0200 (CEST) Received: by kea.toroid.org (Postfix, from userid 1000) id 0EBBB4E161F; Wed, 27 Apr 2016 16:27:57 +0530 (IST) Date: Wed, 27 Apr 2016 16:27:57 +0530 From: Abhijit Menon-Sen To: pgsql-hackers@postgresql.org Cc: Magnus Hagander , Craig Ringer , Petr Jelinek Subject: Re: 9.6 and fsync=off Message-ID: <20160427105756.GB4861@toroid.org> References: <20160427104307.GA4861@toroid.org> <57209AE7.9020906@2ndquadrant.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="a8Wt8u1KmwUX3Y2C" Content-Disposition: inline In-Reply-To: <57209AE7.9020906@2ndquadrant.com> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org --a8Wt8u1KmwUX3Y2C Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Here's a patch just to help things along. -- Abhijit --a8Wt8u1KmwUX3Y2C Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="fsync.diff" diff --git a/src/backend/utils/misc/postgresql.conf.sample b/src/backend/utils/misc/postgresql.conf.sample index f3e3de0..353de2e 100644 --- a/src/backend/utils/misc/postgresql.conf.sample +++ b/src/backend/utils/misc/postgresql.conf.sample @@ -182,7 +182,9 @@ #wal_level = minimal # minimal, replica, or logical # (change requires restart) -#fsync = on # turns forced synchronization on or off +#fsync = on # provide crash safety by flushing disk writes + # (disabling this can lead to unrecoverable + # data corruption) #synchronous_commit = on # synchronization level; # off, local, remote_write, remote_apply, or on #wal_sync_method = fsync # the default is the first option --a8Wt8u1KmwUX3Y2C Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers --a8Wt8u1KmwUX3Y2C--