Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qgxdr-000PD6-4m for pgsql-hackers@arkaria.postgresql.org; Fri, 15 Sep 2023 01:29:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qgxdo-00C41e-ES for pgsql-hackers@arkaria.postgresql.org; Fri, 15 Sep 2023 01:29:04 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qgxdo-00C41O-3H for pgsql-hackers@lists.postgresql.org; Fri, 15 Sep 2023 01:29:03 +0000 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qgxdk-004cOI-Ns for pgsql-hackers@postgresql.org; Fri, 15 Sep 2023 01:29:02 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 98923320084E; Thu, 14 Sep 2023 21:28:58 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Thu, 14 Sep 2023 21:28:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm2; t= 1694741338; x=1694827738; bh=2w6/GsZXKQ4WqrW5NmcV/WMfx83EuHT6OEK +156iOU0=; b=FC9lTjceccoEwVprc5cghVOPu2Ld+eFtv8Y+kCP0bEzwv3Btpfg sMy7IoSyVgxqurAsFYIj8UaZaNx6kD09mwgWRcbudfB/2c66pNYVSh+UGPW/KrrX YPYYnkjo3D6AKXUoOFHl3jL6JW0xXQ0VwLRU+kYF0/S8upYyHbZnpjI2vvV4/vvj oB41aKgh2M4MWe0wHtuO4+1W9Iy0tWuJJdgs4xnFGCHr5Nke7CRQMG8bB3Gc0V8/ 6YwxVnM0cWdg78mSit2IVN521vXnEgR9E4knOurXAw06sHbfvnbv50f5Fnk63/MJ G7dlncg77bLXeat7365v0HQNWiWuwBLtBjw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1694741338; x= 1694827738; bh=2w6/GsZXKQ4WqrW5NmcV/WMfx83EuHT6OEK+156iOU0=; b=M gXesLAU49je/+uq3iMhV2ha8mczS1SvznANSGpZzARKXL4FnkekhOJY9B2pBeBAL vdMAWzrJnWbh3HBiKsc+MqoE97DsP/x3MZiXAYKlVgKFMLAKXq6z7UrjpF+FLl8l 4M1euXqIZnMIAKO7jo+UGu1YQwrPF8cFMr68nsL0Ok8idyTENjBSSaBQ4G2+RPOs dJ3SVAG0k5M3OcVJus3dsv0Nmzp1AgsBzMMhL4W0jtm5kvSxlI3W8uAz466mxrAs we6Le/jIXNKL8480YgWv615KBJDo2OdVMJ61vmirRgBcqiLZ5pM5j/KpnfvRfxPl LmfIsUdqa1heXckAopTrA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudejuddggeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffufggjfhfkgggtgfesthhqmhdttderjeenucfhrhhomheptehnughr vghsucfhrhgvuhhnugcuoegrnhgurhgvshesrghnrghrrgiivghlrdguvgeqnecuggftrf grthhtvghrnheplefgffdthfdttddvveegfedvvdffleekleeileffudeltdehvddvffek veeiiedtnecuffhomhgrihhnpehpohhsthhgrhgvshhqlhdrohhrghenucevlhhushhtvg hrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrnhgurhgvshesrghnrghr rgiivghlrdguvg X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 14 Sep 2023 21:28:57 -0400 (EDT) Date: Thu, 14 Sep 2023 18:28:56 -0700 From: Andres Freund To: pgsql-hackers@lists.postgresql.org, Euler Taveira , Andy Fan , pgsql-hackers Subject: Re: Is it possible to change wal_level online User-Agent: K-9 Mail for Android In-Reply-To: <76e9f281-a70a-4c11-b2f8-d83446aa70aa@app.fastmail.com> References: <76e9f281-a70a-4c11-b2f8-d83446aa70aa@app.fastmail.com> Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi,=20 On September 14, 2023 6:21:59 AM PDT, Euler Taveira = wrote: >On Thu, Sep 14, 2023, at 7:05 AM, Andy Fan wrote: >> Currently it is complained that wal_level changes require an instance >> restart, I'm not familiar with this stuff so far and I didn't get any = good >> information from searching the email archive=2E So I want to gather=20 >> some feedbacks from experts to see if it is possible and if not, why >> it would be the key blocker for this=2E Basically I agree that changin= g=20 >> the wal_level online will be a good experience for users=2E=20 >>=20 > >This topic was already discussed=2E See this thread [1] that was requesti= ng to >change the wal_level default value=2E There might be other threads but I = didn't >try hard to find them=2E > > >[1] https://www=2Epostgresql=2Eorg/message-id/20200608213215=2Emgk3cctlzv= fuaqm6%40alap3=2Eanarazel=2Ede I think it's gotten a bit easier since then, because we now have global ba= rriers, to implement the waiting that's mentioned in the email=2E Possibly we should do the switch to logical dynamically, without a dedicat= ed wal_level=2E Whenever a logical slot exists, automatically increase the = Wal level, whenever the last slot is dropped, lower it again=2E Plus some w= aiting to ensure every backend has knows about the new value=2E=20 Regards, Andres=20 --=20 Sent from my Android device with K-9 Mail=2E Please excuse my brevity=2E