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 1hptTW-0005AN-Ru for pgsql-hackers@arkaria.postgresql.org; Tue, 23 Jul 2019 12:00:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hptTV-0004Of-NZ for pgsql-hackers@arkaria.postgresql.org; Tue, 23 Jul 2019 12:00:57 +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 1hptTV-0004NY-F7 for pgsql-hackers@lists.postgresql.org; Tue, 23 Jul 2019 12:00:57 +0000 Received: from mail-qk1-f177.google.com ([209.85.222.177]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hptTO-00040F-Oz for pgsql-hackers@postgresql.org; Tue, 23 Jul 2019 12:00:57 +0000 Received: by mail-qk1-f177.google.com with SMTP id v22so30853952qkj.8 for ; Tue, 23 Jul 2019 05:00:50 -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=3TU7i02gZeyuVA7F/XW5zhDVfNS531hf5EPWvGetAY4=; b=TjBbDQEQziGWUhlPvVZPKEqOMqWfjrn7eRErrn0QpmNQvmYLUyvSWQAe2Ow5tpxucc hR3rQMQFu87s6OGqkHqidNP536lU7HaLkZBFz46alXyObVH79jRYvcF+q3kOktVs50H4 6h0VFXEihCTx59BYBkDORihfCY6DpIuFpr0JwtstUP0BPJjJ8vBbgweSw2WCktthzj1E lazQsDavwHlHRdYPTILX4dAuahecFlP6fswkRTs5sw0xfeYBMJOYqp0hTKa2oj5V1W8Z 96m/94i9JlnumSo5nrZxuu15lY7mWMiKXBXAi51EkccLtJN348VYb1V5Bkd8QmKXLsFx UPkQ== X-Gm-Message-State: APjAAAXqnQyRIKnP8/sRnyFeX61syizW1xz1jEnMjeO+KEu18Rp1d2Ty DfXITuVobNjtdRIXTnL9hF9WGgAjFnTcmQ== X-Google-Smtp-Source: APXvYqw+VBE9Wp+gmGQSWvv/+/w57D0TCw3uZHm925WeTDuXuhtlZOPjHeeaBGH+Zcy4rCU9DW0a4g== X-Received: by 2002:a37:d247:: with SMTP id f68mr52129197qkj.177.1563883248488; Tue, 23 Jul 2019 05:00:48 -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 y42sm28283769qtc.66.2019.07.23.05.00.47 (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Tue, 23 Jul 2019 05:00:47 -0700 (PDT) Reply-To: jesper.pedersen@redhat.com Subject: Re: pg_receivewal documentation To: Michael Paquier Cc: Robert Haas , 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> <20190722014851.GC1757@paquier.xyz> <9fea76ce-6912-c262-6f64-2b7c4496be65@redhat.com> <20190723000820.GA2059@paquier.xyz> From: Jesper Pedersen Organization: Red Hat Message-ID: <72d2d628-eff9-94dc-8ced-0869bfda4e80@redhat.com> Date: Tue, 23 Jul 2019 08:00:41 -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: <20190723000820.GA2059@paquier.xyz> Content-Type: multipart/mixed; boundary="------------424925CDAF8D7FED5669F82B" 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. --------------424925CDAF8D7FED5669F82B Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Hi, On 7/22/19 8:08 PM, Michael Paquier wrote: >> + to something other than > > Looks fine to me. Just a tiny nit. For the second reference to > synchronous_commit, I would change the link to a markup. Sure. Best regards, Jesper --------------424925CDAF8D7FED5669F82B Content-Type: text/x-patch; name="v10_pgreceivewal-doc.patch" Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="v10_pgreceivewal-doc.patch" From f6c5e9128e0779f928d94bf9bcc8813bf03150f0 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 Author: Robert Haas Review-by: Michael Paquier, Álvaro Herrera, Laurenz Albe and Jesper Pedersen --- doc/src/sgml/ref/pg_receivewal.sgml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/doc/src/sgml/ref/pg_receivewal.sgml b/doc/src/sgml/ref/pg_receivewal.sgml index 0506120c00..a7536bed92 100644 --- a/doc/src/sgml/ref/pg_receivewal.sgml +++ b/doc/src/sgml/ref/pg_receivewal.sgml @@ -52,7 +52,15 @@ PostgreSQL documentation Unlike the WAL receiver of a PostgreSQL standby server, pg_receivewal by default flushes WAL data only when a WAL file is closed. The option must be specified to flush WAL data - in real time. + in real time. Since pg_receivewal does not apply WAL, + you should not allow it to become a synchronous standby when + equals remote_apply. + If it does, it will appear to be a standby which never catches up, + which may cause commits to block. To avoid this, you should either + configure an appropriate value for , or + specify an application_name for + pg_receivewal that does not match it, or change the value of + synchronous_commit to something other than remote_apply. -- 2.21.0 --------------424925CDAF8D7FED5669F82B--