Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oCG1E-0005M5-Rr for pgsql-bugs@arkaria.postgresql.org; Fri, 15 Jul 2022 07:45:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oCG1D-0004Sr-HC for pgsql-bugs@arkaria.postgresql.org; Fri, 15 Jul 2022 07:45:47 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oCG1D-0004Sg-5j for pgsql-bugs@lists.postgresql.org; Fri, 15 Jul 2022 07:45:47 +0000 Received: from lana.depesz.com ([88.198.49.178] helo=depesz.com) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oCG1A-0001aQ-DM for pgsql-bugs@lists.postgresql.org; Fri, 15 Jul 2022 07:45:46 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=depesz.com; s=20170201; h=In-Reply-To:Content-Type:MIME-Version:References:Reply-To: Message-ID:Subject:Cc:To:Sender:From:Date:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=lcIR6bXY5tCUN7i7gDy5f18480hsyZiXtawKwpPkytk=; b=HjCAqkcaqekahC5s3C3pQG5jlI fiEkdeDa789yi/XsTaYylBM2KnE3BpwrFUgDC8pB9MFeOE8uTK1D03jeUFIlGE2sMSJhRYh0H/axl uuRAGZCBJU5ui2U70jxSZEKm0CYGhgnWu0JQEzwYkKx/71MnsZugOQswrGwJV6jDRtjo=; Received: from lana.depesz.com ([88.198.49.178] helo=depesz.com) by depesz.com with esmtpa (Exim 4.92) (envelope-from ) id 1oCG16-0007AJ-Vr; Fri, 15 Jul 2022 09:45:41 +0200 Date: Fri, 15 Jul 2022 09:45:40 +0200 From: hubert depesz lubaczewski Sender: depesz@depesz.com To: Kyotaro Horiguchi Cc: pgsql-bugs@lists.postgresql.org Subject: Re: Excessive number of replication slots for 12->14 logical replication Message-ID: <20220715074540.GA26521@depesz.com> Reply-To: depesz@depesz.com References: <20220714115155.GA5439@depesz.com> <20220715.135532.1618828427814537234.horikyota.ntt@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220715.135532.1618828427814537234.horikyota.ntt@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, Jul 15, 2022 at 01:55:32PM +0900, Kyotaro Horiguchi wrote: > Thus, not just about logical replication, some spare slots are > necessary to keep things running smoothly. I guess that it is > widely(?) recommended to provide at least one or two spare slots to > allow replication reconnection in case of silent disconnections, but I > haven't found something like that in the documentation.. In your case, > it seems to me larger number of spare slots makes the server run more > smoothly, *I* don't think 10 spare slots affect anything badly. OK. The explanation makes sense, but leads to problem - we have 50 max replication slots, which gives me 20 spare slots. And I'm not sure how much should I increase it so that it will still work. Plus - there is the problem that increasing max_replication_slots requires restart :( Anyway, will deal with it, now that I understand the issue. Thanks a lot. Best regards, depesz