pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: Vick Khera <vivek@khera.org>
Cc: pgsql-general@postgresql.org
Subject: Re: Can PostgreSQL create new WAL files instead of reusing old ones?
Date: Fri, 27 Apr 2018 12:28:25 -0400
Message-ID: <20180427162825.GA32461@momjian.us> (raw)
In-Reply-To: <CALd+dcfM2t8Ae4A6Tw3ctW1w-yZSG7uV18Nv0EE94+Dsv7TG3w@mail.gmail.com>
References: <20180417182013.zi3wghrvyspiatkh@alvherre.pgsql>
	<2384.1523991423@sss.pgh.pa.us>
	<20180418043543.GI18178@paquier.xyz>
	<CALd+dcfM2t8Ae4A6Tw3ctW1w-yZSG7uV18Nv0EE94+Dsv7TG3w@mail.gmail.com>

On Wed, Apr 18, 2018 at 09:34:50AM -0400, Vick Khera wrote:
> On Wed, Apr 18, 2018 at 12:35 AM, Michael Paquier <michael@paquier.xyz> 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  <bruce@momjian.us>        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 +




view thread (16+ messages)  latest in thread

Message-ID: <20180427162825.GA32461@momjian.us>
Permalink:  ../20180427162825.GA32461@momjian.us/
Also on:    postgresql.org/message-id/20180427162825.GA32461@momjian.us

 · 

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: bruce@momjian.us, vivek@khera.org
  Subject: Re: Can PostgreSQL create new WAL files instead of reusing old ones?
  In-Reply-To: <20180427162825.GA32461@momjian.us>
  References: <20180417182013.zi3wghrvyspiatkh@alvherre.pgsql> <2384.1523991423@sss.pgh.pa.us> <20180418043543.GI18178@paquier.xyz> <CALd+dcfM2t8Ae4A6Tw3ctW1w-yZSG7uV18Nv0EE94+Dsv7TG3w@mail.gmail.com> <20180427162825.GA32461@momjian.us>

* 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