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 1hqGwF-0001HB-J6 for pgsql-hackers@arkaria.postgresql.org; Wed, 24 Jul 2019 13:04:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hqGvG-0000Sp-2x for pgsql-hackers@arkaria.postgresql.org; Wed, 24 Jul 2019 13:03:10 +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 1hqGvF-0000Si-Pj for pgsql-hackers@lists.postgresql.org; Wed, 24 Jul 2019 13:03:09 +0000 Received: from [212.85.157.172] (helo=mail.dalibo.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hqGvD-0001Yn-O8 for pgsql-hackers@postgresql.org; Wed, 24 Jul 2019 13:03:09 +0000 Received: from firost (abordeaux-656-1-241-32.w90-38.abo.wanadoo.fr [90.38.33.32]) by mail.dalibo.com (Postfix) with ESMTPSA id 9F68D1F6D6; Wed, 24 Jul 2019 15:03:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=dalibo.com; s=a; t=1563973386; bh=zmBeH6cvbquIte1JgM9M1ltz0puGGHrV57DVimrRRc4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=js1QceD5486/8ZOYGW5vLVY+z6VKgn54WFyHdXbEPBWN4+smJ+/4UhzK9AVlvpQI3 Wl+6AKbPY1GjUus1ABJ/nZcqCBRuUjZUV4bgK4vA3+mx3T5mq85J+7JAQIFmxDLWk9 AFcoI7vWUf7trVKtCJlscM+F01cV08W+/ms/veA4= Date: Wed, 24 Jul 2019 15:03:04 +0200 From: Jehan-Guillaume de Rorthais To: Michael Paquier Cc: Jesper Pedersen , PostgreSQL-development Subject: Re: pg_receivewal documentation Message-ID: <20190724150304.02882f38@firost> In-Reply-To: <20190724022928.GC14257@paquier.xyz> References: <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> <72d2d628-eff9-94dc-8ced-0869bfda4e80@redhat.com> <20190724022928.GC14257@paquier.xyz> Organization: Dalibo MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/W7jqwww14IVqmBj_ToIMyry" X-Host-Lookup-Failed: Reverse DNS lookup failed for 212.85.157.172 (failed) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --MP_/W7jqwww14IVqmBj_ToIMyry Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, On Wed, 24 Jul 2019 11:29:28 +0900 Michael Paquier wrote: > On Tue, Jul 23, 2019 at 08:00:41AM -0400, Jesper Pedersen wrote: > > Sure. > > Thanks. Applied down to 9.6 where remote_apply has been introduced, > with tweaks for 9.6 as the tool is named pg_receivexlog there. Sorry to step in so lately. Unless I am missing something, another solution might be to use a dedicated role to pg_receive{xlog|wal} with synchronous_commit lower than remote_apply. Not sure we want to add such detail, but if you consider it useful, you'll find a patch in attachment. Regards, --MP_/W7jqwww14IVqmBj_ToIMyry Content-Type: text/x-patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=0001-Add-doc-details-for-pg_receivewal-with-remote_apply.patch From 01a7de92dbaae5a61d5ec7bd04bef1553467f29d Mon Sep 17 00:00:00 2001 From: Jehan-Guillaume de Rorthais Date: Wed, 24 Jul 2019 14:58:41 +0200 Subject: [PATCH] Add doc details for pg_receivewal with remote_apply --- doc/src/sgml/ref/pg_receivewal.sgml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/doc/src/sgml/ref/pg_receivewal.sgml b/doc/src/sgml/ref/pg_receivewal.sgml index 177e9211c0..abf55ce713 100644 --- a/doc/src/sgml/ref/pg_receivewal.sgml +++ b/doc/src/sgml/ref/pg_receivewal.sgml @@ -62,7 +62,12 @@ PostgreSQL documentation application_name for pg_receivewal that does not match it, or change the value of synchronous_commit to - something other than remote_apply. + something other than remote_apply either cluster wide or + just for a dedicated role to pg_receivewal: + +CREATE ROLE receivewal WITH LOGIN REPLICATION; +ALTER ROLE receivewal SET synchronous_commit TO on; + -- 2.20.1 --MP_/W7jqwww14IVqmBj_ToIMyry--