pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Malte Swart <pg@malteswart.de>
To: pgsql-general@lists.postgresql.org
Subject: pg_rewind and full_page_writes on zfs
Date: Fri, 17 May 2019 10:56:17 +0200
Message-ID: <2285376.9Qy4lotxuy@morab> (raw)

Hi,

I am currently building a PostgreSQL cluster with physical replication. I want 
to disable full_page_writes as the underlaying filesystem (ZFS) prevents 
partial page writes.
I would like to use pg_rewind for faster reintegration of diverted nodes but 
pg_rewind refuses to act if full_page_writes are disabled.

Does anyone know whether it is safe to skip this check on ZFS?

Are there other implications of disabling full_page_writes that impact 
pg_rewind? The documentation does not state any reason to enable 
full_page_writes. The source code [1] mentioned something about modification 
during pg_read_binary_file but I do not know if it is relevant for ZFS.

Help appreciated,
Malte.


[1]: https://git.postgresql.org/gitweb/?p=postgresql.git;a=blob;f=src/bin/
pg_rewind/libpq_fetch.c;hb=HEAD#l74







Message-ID: <2285376.9Qy4lotxuy@morab>
Permalink:  ../2285376.9Qy4lotxuy@morab/
Also on:    postgresql.org/message-id/2285376.9Qy4lotxuy@morab

 · 

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: pg@malteswart.de
  Subject: Re: pg_rewind and full_page_writes on zfs
  In-Reply-To: <2285376.9Qy4lotxuy@morab>
  References: <2285376.9Qy4lotxuy@morab>

* 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