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 1ho5iF-0001mw-2w for pgsql-hackers@arkaria.postgresql.org; Thu, 18 Jul 2019 12:40:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ho5iD-000513-T9 for pgsql-hackers@arkaria.postgresql.org; Thu, 18 Jul 2019 12:40:41 +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 1ho5iD-00050w-Kk for pgsql-hackers@lists.postgresql.org; Thu, 18 Jul 2019 12:40:41 +0000 Received: from mail-qk1-f195.google.com ([209.85.222.195]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ho5iB-00064J-Cf for pgsql-hackers@postgresql.org; Thu, 18 Jul 2019 12:40:41 +0000 Received: by mail-qk1-f195.google.com with SMTP id w190so20280974qkc.6 for ; Thu, 18 Jul 2019 05:40:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:reply-to:subject:to:cc:references:from :organization:message-id:date:user-agent:mime-version:in-reply-to :content-language; bh=6W6UTrr3CTVNDZWNZNRskQVNwUdL9VwvmD1Yf535i0c=; b=FZIHuHWWtNjuQlIr8uiy0Ow+dfqy/c/m9BsXM0zBuU3NWCliU/Ju4/UT2bmixhZB5w neJZbG0kTSphdEoJYSH+mvRDhY3CK92ukJrggPAnqg9Zy3+Oj/volK4LxH5pmbJHGkcl tHAg+MEJVtN/N+sz46CgdVvZGxz2Q6PnwRbv3pCFX3ghin0Vd6OBcanzbPwC6wOzNa8K 9VPDATubVVu/hzQsDe9ZPJcUY15SdP4cwL+kLamKWEFR65JtVj1SjoKtekHRCb8M+PPT cbCTsGjxrE6Rtk9Npm/Iei0NIh3INzDa9YGwuigU5MvkdCZr+MLAIBQcYh1rPdOJ5Qj3 +9Vg== X-Gm-Message-State: APjAAAWLRbSI3FEfuEwbsIyh96XaXXNP/w0y0HMgIbCsqhdYz2Z6JD5L vw1xPyhIMOa5zKgfSqf8AsIM8Sv25TaohQ== X-Google-Smtp-Source: APXvYqwJ3c8PG+g6Pe4HPsStA7Q2W4+nI0y9DHFJIuDnkFSV0V+hXb38Z9aC9G9qNziUnL6PgKXOKQ== X-Received: by 2002:a05:620a:15f0:: with SMTP id p16mr30304150qkm.141.1563453637711; Thu, 18 Jul 2019 05:40:37 -0700 (PDT) Received: from localhost.localdomain (c-24-61-8-151.hsd1.ma.comcast.net. [24.61.8.151]) by smtp.gmail.com with ESMTPSA id s8sm11586901qkg.64.2019.07.18.05.40.36 (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Thu, 18 Jul 2019 05:40:36 -0700 (PDT) Reply-To: jesper.pedersen@redhat.com Subject: Re: pg_receivewal documentation To: Michael Paquier Cc: Laurenz Albe , Alvaro Herrera , PostgreSQL-development References: <20190710142421.GA28387@alvherre.pgsql> <54779de5-f922-c0cf-629d-b582eded7265@redhat.com> <20190716050555.GA1439@paquier.xyz> <65c3ecdf-8995-34cb-83c4-50068877e632@redhat.com> <20190717013835.GA2130@paquier.xyz> <44e51f9f60abb872854879c91da0ed3b67a6ba95.camel@cybertec.at> <20190717080424.GB20614@paquier.xyz> <7eaf748c-3f40-c994-0eb3-7d87709588d0@redhat.com> <184780f1f90a31c4c8b53f0e6328bf5aaae4f786.camel@cybertec.at> <20190718052909.GF1416@paquier.xyz> From: Jesper Pedersen Organization: Red Hat Message-ID: Date: Thu, 18 Jul 2019 08:40:36 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190718052909.GF1416@paquier.xyz> Content-Type: multipart/mixed; boundary="------------C8D23E9DC73B548CDE930698" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------C8D23E9DC73B548CDE930698 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Hi, On 7/18/19 1:29 AM, Michael Paquier wrote: > Or more simply like that? > "Note that while WAL will be flushed with this setting, > pg_receivewal never applies it, so synchronous_commit must not be set > to remote_apply if pg_receivewal is a synchronous standby, be it a > member of a priority-based (FIRST) or a quorum-based (ANY) synchronous > replication setup." Yeah, better. Best regards, Jesper --------------C8D23E9DC73B548CDE930698 Content-Type: text/x-patch; name="v7_pgreceivewal-doc.patch" Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="v7_pgreceivewal-doc.patch" From 2bcb8d6376d94a265a598f552eed3915b980aa94 Mon Sep 17 00:00:00 2001 From: jesperpedersen Date: Tue, 9 Jul 2019 13:14:25 -0400 Subject: [PATCH] Highlight that pg_receivewal doesn't apply WAL, and as such synchronous-commit needs to be remote_write or lower. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Authors: Michael Paquier, Álvaro Herrera, Laurenz Albe and Jesper Pedersen Review-by: Michael Paquier, Álvaro Herrera, Laurenz Albe and Jesper Pedersen --- doc/src/sgml/ref/pg_receivewal.sgml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/doc/src/sgml/ref/pg_receivewal.sgml b/doc/src/sgml/ref/pg_receivewal.sgml index 0506120c00..e96d753955 100644 --- a/doc/src/sgml/ref/pg_receivewal.sgml +++ b/doc/src/sgml/ref/pg_receivewal.sgml @@ -207,6 +207,16 @@ PostgreSQL documentation server as a synchronous standby, to ensure that timely feedback is sent to the server. + + + Note that while WAL will be flushed with this setting, + pg_receivewal never applies it, + so must not be set + to remote_apply or on if + pg_receivewal is a synchronous standby, be it a + member of a priority-based (FIRST) or a + quorum-based (ANY) synchronous replication setup. + -- 2.21.0 --------------C8D23E9DC73B548CDE930698--