Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jUIgw-0003fz-Ui for pgsql-admin@arkaria.postgresql.org; Thu, 30 Apr 2020 23:34:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jUIgv-0001l2-RJ for pgsql-admin@arkaria.postgresql.org; Thu, 30 Apr 2020 23:34:05 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jUIgv-0001k0-KE for pgsql-admin@lists.postgresql.org; Thu, 30 Apr 2020 23:34:05 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jUIgm-00057J-NW for pgsql-admin@lists.postgresql.org; Thu, 30 Apr 2020 23:34:03 +0000 Received: from bruce by momjian.us with local (Exim 4.92) (envelope-from ) id 1jUIgk-0004dX-93; Thu, 30 Apr 2020 19:33:54 -0400 Date: Thu, 30 Apr 2020 19:33:54 -0400 From: Bruce Momjian To: Naveen Sankineni Cc: pgsql-admin@lists.postgresql.org Subject: Re: Commit Delay Message-ID: <20200430233354.GB31272@momjian.us> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Thu, Apr 30, 2020 at 07:31:01PM -0400, Naveen Sankineni wrote: > Hello , > > I would need your advice on which parameter is least impacted in terms of Data > Loss if we wanted to set . > One of our Database is waiting on I/O when there is a batch operation that runs > to Insert/Delete table data is impacting the small updates that runs  on a > continuous basis where it shows that wait is on walwritelock. > > commit_delay  > synchronous_commit The full list is here: https://www.postgresql.org/docs/12/non-durability.html I would say synchronous_commit. -- Bruce Momjian https://momjian.us EnterpriseDB https://enterprisedb.com + As you are, so once was I. As I am, so you will be. + + Ancient Roman grave inscription +