Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gHzHX-0004tE-WB for pgsql-hackers@arkaria.postgresql.org; Wed, 31 Oct 2018 22:48: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 1gHzHV-00036G-6W for pgsql-hackers@arkaria.postgresql.org; Wed, 31 Oct 2018 22:48:09 +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_SHA384:256) (Exim 4.89) (envelope-from ) id 1gHzHU-00035v-36 for pgsql-hackers@lists.postgresql.org; Wed, 31 Oct 2018 22:48:09 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gHzHR-0005Qc-Bd for pgsql-hackers@postgresql.org; Wed, 31 Oct 2018 22:48:07 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 3381B221BC; Wed, 31 Oct 2018 18:48:04 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Wed, 31 Oct 2018 18:48:04 -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=fm2; bh=HN/fwb0P3JtdHeXzU6fxSgZNh8E j7QJKyvnSpSICGZM=; b=uPQgIoXn7LEZIIV98CkS11+3Z+LiJQuyTnEFn9OINWH dj5CUNViMrQOeyEdtUg+psY5FcSROJJXQaUEao6e+9bdsWPj5B442MweoqKyY29F NqxezDtg3O4SI/PuQEZndS9V0Z0nQsPDAvv9pZErmRjtBGA4F+fSChANCSkWvdVf BmaOz5wvqPcb05kr/DbEeWLob3L3BFGFlmKBwx5dHd4y1IiMzBg+Orz2TZZ2Z0wJ vycmoP1NRrFVSB6juVAPM4OLqq9DOdgky9lDRvdctGZ3mXebpLDa/JIm14ZO90p3 CuG9Gf33pxnYqshB75HP9Gj1XpqwPEubCw4tVpzYBgA== 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=fm1; bh=HN/fwb 0P3JtdHeXzU6fxSgZNh8Ej7QJKyvnSpSICGZM=; b=gP25zOWo1zmbL7sMF2lgLR RGWNKPcZAzCB0N/5g/5WH4L2BPnoF0KkAhi5WZtOSJisqnVLR1r1XNNrjvqgIsJn Mn5xFTowVSxtZitQXVBZWain7vJmg5ico9AB+5k9j0Bm+bBzO8sKBaodayoaSZPO SG2UM7H+GIki5ILy4xlZiWCh0geG3ATURcLTcUv83HDjbRRUhucOMiGAxiE6HjfB ItR9UgztQSv10DYZURKCuwNZtQFNhdAPR9jlRMgy1/8ogXRfkPsAYdPwuDv5231A X6jR9ar6HTcO5iQqWi7/v5uZdVa5ox/rKf8N9LL8O2sRuxu5Yp8SliRwJwbB25Lg == X-ME-Sender: 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 1E1EF102ED; Wed, 31 Oct 2018 18:48:03 -0400 (EDT) Date: Wed, 31 Oct 2018 15:48:02 -0700 From: Andres Freund To: Michael Paquier Cc: Alvaro Herrera , "Joshua D. Drake" , pgsql-hackers Subject: Re: replication_slots usability issue Message-ID: <20181031224802.lamhfjil7uwpfiee@alap3.anarazel.de> References: <56672097-711c-126a-a63e-04e7940110ad@commandprompt.com> <20181029190218.uejy5cvgzygwrguy@alvherre.pgsql> <20181029191304.lbsmhshkyymhw22w@alap3.anarazel.de> <20181030025109.GD1644@paquier.xyz> <20181030175254.wqircsg36vblpmw5@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181030175254.wqircsg36vblpmw5@alap3.anarazel.de> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2018-10-30 10:52:54 -0700, Andres Freund wrote: > On 2018-10-30 11:51:09 +0900, Michael Paquier wrote: > > On Mon, Oct 29, 2018 at 12:13:04PM -0700, Andres Freund wrote: > > > I don't think this quite is the problem. ISTM the issue is rather that > > > StartupReplicationSlots() *needs* to check whether wal_level > minimal, > > > and doesn't. So you can create a slot, shutdown, change wal_level, > > > startup. A slot exists but won't work correctly. > > > > It seems to me that what we are looking for is just to complain at > > startup if we find any slot data and if trying to start up with > > wal_level = minimal. > > Right, we really should just call CheckSlotRequirements() before doing > so. I'll make it so, once I'm actually awake and had some coffee. And done. Thanks for the report JD. - Andres