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 1oDLoe-0003oh-1t for pgsql-bugs@arkaria.postgresql.org; Mon, 18 Jul 2022 08:09:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oDLoc-0008B1-PT for pgsql-bugs@arkaria.postgresql.org; Mon, 18 Jul 2022 08:09:18 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oDLoc-0008As-Gw for pgsql-bugs@lists.postgresql.org; Mon, 18 Jul 2022 08:09:18 +0000 Received: from lana.depesz.com ([88.198.49.178] helo=depesz.com) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oDLoa-0000aD-Ai for pgsql-bugs@lists.postgresql.org; Mon, 18 Jul 2022 08:09:18 +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=+2S9eSigPZDVB4hG40dcFEaMTc7zMEkf8r/vViNVqaU=; b=ESyG9A+hd5P3pMdC/NlfrB3PLw 4PbmVa5XToJdihfUg5z4Cc67Py/dNYRYLekFLUXMqaMMMAoW/rxNJt6HPOc8KNM+az/Vee7eIWEp7 wkR3orVANqXzBHLsVdnAmA4exhOLmIVxmAGRD0WmwRAnyOHnSEbVioOcWw3ftKW4QT8s=; Received: from lana.depesz.com ([88.198.49.178] helo=depesz.com) by depesz.com with esmtpa (Exim 4.92) (envelope-from ) id 1oDLoX-0007NH-MJ; Mon, 18 Jul 2022 10:09:13 +0200 Date: Mon, 18 Jul 2022 10:09:13 +0200 From: hubert depesz lubaczewski Sender: depesz@depesz.com To: Amit Kapila Cc: PostgreSQL mailing lists Subject: Re: Excessive number of replication slots for 12->14 logical replication Message-ID: <20220718080913.GA27048@depesz.com> Reply-To: depesz@depesz.com References: <20220714115155.GA5439@depesz.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: 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 Mon, Jul 18, 2022 at 09:07:35AM +0530, Amit Kapila wrote: > As per my understanding, each subscription will use three slots (one > for apply worker and one for each of the sync workers) in your case in > the sync phase. So, in your case, if you have 10 subscriptions then > ideally it should be no more than 30. Can you please check and share > the subscriber logs to see if there are any errors in the initial sync > phase? Also, please confirm the number of subscriptions you create on > the subscriber? Hi, I'm 100% sure we create 10, with the table distribution as shown in original post. Will reset the whole thing from scratch, and check for other errors, but it will take "a while". Best regards, depesz