Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fC6Eb-0007W6-4s for pgsql-general@arkaria.postgresql.org; Fri, 27 Apr 2018 16:28:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fC6EY-00038b-RP for pgsql-general@arkaria.postgresql.org; Fri, 27 Apr 2018 16:28:30 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fC6EY-000380-FT for pgsql-general@lists.postgresql.org; Fri, 27 Apr 2018 16:28:30 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fC6EV-0006dd-Mg for pgsql-general@postgresql.org; Fri, 27 Apr 2018 16:28:29 +0000 Received: from bruce by momjian.us with local (Exim 4.84_2) (envelope-from ) id 1fC6ET-0003il-ML; Fri, 27 Apr 2018 12:28:25 -0400 Date: Fri, 27 Apr 2018 12:28:25 -0400 From: Bruce Momjian To: Vick Khera Cc: pgsql-general@postgresql.org Subject: Re: Can PostgreSQL create new WAL files instead of reusing old ones? Message-ID: <20180427162825.GA32461@momjian.us> References: <20180417182013.zi3wghrvyspiatkh@alvherre.pgsql> <2384.1523991423@sss.pgh.pa.us> <20180418043543.GI18178@paquier.xyz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Wed, Apr 18, 2018 at 09:34:50AM -0400, Vick Khera wrote: > On Wed, Apr 18, 2018 at 12:35 AM, Michael Paquier wrote: > > > That looks like a rather difficult problem to solve in PostgreSQL > itself, as the operator running the cluster is in charge of setting up > the FS options which would control the COW behavior, so it seems to me > > > You cannot turn off CoW on ZFS. What other behavior would you refer to here? > > I suppose one could make a dedicated data set for the WAL and have ZFS make a > reservation for about 2x the total expected WAL size. It would require careful > attention to detail if you increase WAL segments configuration, though, and if > you had any kind of hiccup with streaming replication that caused the segments > to stick around longer than expected (but that's no different from any other > file system). Uh, at the risk of asking an obvious question, why is the WAL file COW if it was renamed? No one has the old WAL file open, as far as I know. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + As you are, so once was I. As I am, so you will be. + + Ancient Roman grave inscription +