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 1hnoDs-0001Lw-1a for pgsql-hackers@arkaria.postgresql.org; Wed, 17 Jul 2019 18:00:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hnoDo-0005Hc-Do for pgsql-hackers@arkaria.postgresql.org; Wed, 17 Jul 2019 18:00:08 +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 1hnoDo-0005HV-4c for pgsql-hackers@lists.postgresql.org; Wed, 17 Jul 2019 18:00:08 +0000 Received: from mail-qt1-f174.google.com ([209.85.160.174]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hnoDl-00043A-3v for pgsql-hackers@postgresql.org; Wed, 17 Jul 2019 18:00:07 +0000 Received: by mail-qt1-f174.google.com with SMTP id l9so24287015qtu.6 for ; Wed, 17 Jul 2019 11:00:04 -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=0mjJ/Vw3SyVJ+/TdRo1gBK+E1STK7a3HVZITfrdB9fc=; b=jajLQRS96AdsEb2vkB8yY7ASV2s5XQGhQRVm+dPma7U21NH7SCUAqPjsSrdTv6qCV3 AVRKdtaG7jAG6pdnQbFeCgiLagNqzkrFaGFMkTxtjNudN+jGYIftj8zHV6u3ioVAiLwE AvXneUiqz2c744uXMCE5fwgn6dpm6nSrCOhU4mL3iJtOoTfy/sJgXKc9Y9PUXCU629Xg OQZYhsDt1NQmTlR05U7e3K6YpMFvq584eUC/LGsofHIhBfOP/6Qtm8bR71fCOCNnSx9q EWTfM8F7wyXuqLdjUxTEYh9+DJK3C9dP+SJbAdNUp6ZunPJtOBcuB3eo+Pg9UaqIUUl5 Lrlg== X-Gm-Message-State: APjAAAVQMPXYqErg0wizdvxbG6x4+nIovgyjKuV4w8HmeOtabu9JVueV nrjTe6eRiRflqN6RjNn95vsToSbxdO2XWQ== X-Google-Smtp-Source: APXvYqwaqfMzdVoFg5OqwJ24RBPiVaoRWJNG16F+IcGDS3xL1SrBWhCzEM3jzC0UWfa/qAv/I5ygwA== X-Received: by 2002:a0c:b5dd:: with SMTP id o29mr30098180qvf.85.1563386402695; Wed, 17 Jul 2019 11:00:02 -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 a54sm12728495qtk.85.2019.07.17.11.00.01 (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Wed, 17 Jul 2019 11:00:01 -0700 (PDT) Reply-To: jesper.pedersen@redhat.com Subject: Re: pg_receivewal documentation To: Michael Paquier , Laurenz Albe Cc: 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> From: Jesper Pedersen Organization: Red Hat Message-ID: <7eaf748c-3f40-c994-0eb3-7d87709588d0@redhat.com> Date: Wed, 17 Jul 2019 13:59:55 -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: <20190717080424.GB20614@paquier.xyz> Content-Type: multipart/mixed; boundary="------------E08EB3D57A664BC998AACB7F" 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. --------------E08EB3D57A664BC998AACB7F Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Hi, On 7/17/19 4:04 AM, Michael Paquier wrote: >> How about adding "or priority-based" after "quorum-based"? > > I would be fine with that for the first part. I am not sure of what a > good formulation would be for the second part of the sentence. Now it > only refers to quorum, but with priority sets that does not apply. > And I am not sure what "won't count towards the quorum" actually > means. Maybe something like the attached ? Although it doesn't help we need to include on as well... Best regards, Jesper --------------E08EB3D57A664BC998AACB7F Content-Type: text/x-patch; name="v6_pgreceivewal-doc.patch" Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="v6_pgreceivewal-doc.patch" From f1ec4f9e715c798440288bb4e5c97100bf4efacc 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: Álvaro Herrera, Laurenz Albe and Jesper Pedersen Review-by: Álvaro Herrera, Laurenz Albe and Jesper Pedersen --- doc/src/sgml/ref/pg_receivewal.sgml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/doc/src/sgml/ref/pg_receivewal.sgml b/doc/src/sgml/ref/pg_receivewal.sgml index 0506120c00..254315c6bf 100644 --- a/doc/src/sgml/ref/pg_receivewal.sgml +++ b/doc/src/sgml/ref/pg_receivewal.sgml @@ -207,6 +207,19 @@ 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 the only synchronous standby. + Similarly, if pg_receivewal is part of a + priority-based synchronous replication setup (FIRST), + or a quorum-based setup (ANY) it won't count towards + the policy specified if is + set to remote_apply or on. + -- 2.21.0 --------------E08EB3D57A664BC998AACB7F--