Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hRYfD-0004RM-IJ for pgsql-general@arkaria.postgresql.org; Fri, 17 May 2019 08:56:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hRYfC-0000X3-7u for pgsql-general@arkaria.postgresql.org; Fri, 17 May 2019 08:56:26 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1hRYfB-0000Ww-Uk for pgsql-general@lists.postgresql.org; Fri, 17 May 2019 08:56:25 +0000 Received: from mail.3c.dxtt.de ([188.68.62.84]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hRYf9-0003ez-42 for pgsql-general@lists.postgresql.org; Fri, 17 May 2019 08:56:25 +0000 Received: from morab.localnet (unknown [IPv6:2001:638:807:220:1a66:daff:fe05:5283]) by mail.3c.dxtt.de (Postfix) with ESMTPSA id C71D322BED for ; Fri, 17 May 2019 10:56:20 +0200 (CEST) From: Malte Swart 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> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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