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 1hTq8u-0007Vq-Ak for pgsql-hackers@arkaria.postgresql.org; Thu, 23 May 2019 16:00:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hTq8t-00080Z-0h for pgsql-hackers@arkaria.postgresql.org; Thu, 23 May 2019 16:00:31 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hTq8s-00080S-Kt for pgsql-hackers@lists.postgresql.org; Thu, 23 May 2019 16:00:30 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hTq8q-0007vk-EH for pgsql-hackers@postgresql.org; Thu, 23 May 2019 16:00:29 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id B310C6CB; Thu, 23 May 2019 12:00:26 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Thu, 23 May 2019 12:00:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=TbdZxlGw7nMKkZ7P5BVTue+dzBt YZEX3AlBEem91Das=; b=FHfVNn3hxOrq7mi5yfl9wP7hJoigNkOaCravwI9MSpg YC/lr9LBKKQ6uX7yaXDOVOdOOFJGf7EWO/iI9jFB4cQySpP3WodWgobtAh5BUzmm f6TjSqtMULuqEOdEMqWw2VUre+e4nF+MvqPacYVS979H3PlnUO6vfpymNzpPScDt c3J4CbK3rH5DaTrAsFbBNmCUw0Nfh4se8ap482d7CFLwvlVDpwCrs9ThK7/TSkFS lu+s9mxVyrxcaKsRjMU6E/Zw+OPNB2THvSqTb+2wFoQkIewR689bfcIVw0JQJUJn gR/Jnp4NjUc7pFAQRUX7AvGMNavGTOBOTo0ZghrhfLQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=TbdZxl Gw7nMKkZ7P5BVTue+dzBtYZEX3AlBEem91Das=; b=BpMKCgWu90dwI06BzZs40q Vx+x4DbfmzuU5HfTsAXUyXspxgVZy2kQRMZJta3ImuXBTa9fmv3q9e034PtJoFYT PqKy/VfUjYLHNBBtvZgJ5nRS90RQDXY7b01SmQCqT8ruXaqm1ckUvjruyItYpt+w 3U5cVT2qPDrQbj5jlCHdx3Rzdg95JY9fil6V3y6oaSf9yPmifrIgVBayA/cO0F3l AoeWtyXJKB/BiJl2QtzL477wSbuGPtnidv0X6fH3Kf4BWgvRuWPkBhFlKPTfiQrf rZfp/S9OqN8LM21xO3UpfCyHWG91ZKhfXpnoPbLHFLeh7e2b546EVg9mTK7sQutQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddruddugedgleejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpeetnhgurhgv shcuhfhrvghunhguuceorghnughrvghssegrnhgrrhgriigvlhdruggvqeenucfkpheple ekrddvuddtrddugedtrddujedunecurfgrrhgrmhepmhgrihhlfhhrohhmpegrnhgurhgv shesrghnrghrrgiivghlrdguvgenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from intern.anarazel.de (c-98-210-140-171.hsd1.ca.comcast.net [98.210.140.171]) by mail.messagingengine.com (Postfix) with ESMTPA id 07B2F38008C; Thu, 23 May 2019 12:00:25 -0400 (EDT) Date: Thu, 23 May 2019 09:00:23 -0700 From: Andres Freund To: Robert Haas Cc: Sergei Kornilov , Amit Khandekar , tushar , Petr Jelinek , Craig Ringer , Petr Jelinek , pgsql-hackers Subject: Re: Minimal logical decoding on standbys Message-ID: <20190523160023.cpi7cyozbthflx32@alap3.anarazel.de> References: <8af22fc0-d08c-f3fa-e7ec-dfb153b3d7b4@enterprisedb.com> <20190410160925.c4sat4ex67blinhy@alap3.anarazel.de> <20190412192747.m73h2qnddrpzefij@alap3.anarazel.de> <20190521161937.tpepqkiatw6kv35v@alap3.anarazel.de> <9276201558618241@myt5-96980ae04900.qloud-c.yandex.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, On 2019-05-23 09:37:50 -0400, Robert Haas wrote: > On Thu, May 23, 2019 at 9:30 AM Sergei Kornilov wrote: > > > wal_level is PGC_POSTMASTER. > > > > But primary can be restarted without restart on standby. We require wal_level replica or highter (currently only logical) on standby. So online change from logical to replica wal_level is possible on standby's controlfile. > > That's true, but Amit's scenario involved a change in wal_level during > the execution of pg_create_logical_replication_slot(), which I think > can't happen. I don't see why not - we're talking about the wal_level in the WAL stream, not the setting on the standby. And that can change during the execution of pg_create_logical_replication_slot(), if a PARAMTER_CHANGE record is replayed. I don't think it's actually a problem, as I outlined in my response to Amit, though. Greetings, Andres Freund