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 1qLiAB-000U5G-Cl for pgsql-admin@arkaria.postgresql.org; Tue, 18 Jul 2023 10:42:39 +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 1qLiA9-007ehY-0w for pgsql-admin@arkaria.postgresql.org; Tue, 18 Jul 2023 10:42:37 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qLiA8-007ehQ-Kx for pgsql-admin@lists.postgresql.org; Tue, 18 Jul 2023 10:42:36 +0000 Received: from lana.depesz.com ([88.198.49.178] helo=depesz.com) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qLiA4-0007eP-TW for pgsql-admin@lists.postgresql.org; Tue, 18 Jul 2023 10:42:36 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=depesz.com; s=20170201; h=In-Reply-To:Content-Transfer-Encoding:Content-Type:MIME-Version :References:Reply-To:Message-ID:Subject:Cc:To:Sender:From:Date: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=/LCwWz+8MZP9GTWNju5DpZDpm25IY2IktxJEjzYNz1A=; b=K4yrUlIvMEZonJ1C7wDjDPleOS BMLOzslQ7CbAjU5AZaJIrhpsdRaSCxpP3XLKND8Zzn1fyM9TviKjYGqTrEuHN7tDyaJQk1lXT7k/I 5nK7kgCN3h3gQnEAw5FX+rwzd14PyGTp09FolRbBLQ1yfOY+EVJ0kXD/0ib6fUBJj9+A=; Received: from depesz by depesz.com with local (Exim 4.94.2) (envelope-from ) id 1qLiA4-007QTp-NV; Tue, 18 Jul 2023 12:42:32 +0200 Date: Tue, 18 Jul 2023 12:42:32 +0200 From: hubert depesz lubaczewski Sender: depesz@depesz.com To: Chris Hoover Cc: pgsql-admin@lists.postgresql.org Subject: Re: Help with logical replication: pg_replication_slots.active_pid is null???? Message-ID: Reply-To: depesz@depesz.com References: <3DF8573D-9E47-4770-94A1-C0B873BD1D7C@aweber.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <3DF8573D-9E47-4770-94A1-C0B873BD1D7C@aweber.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sun, Jul 16, 2023 at 08:30:59PM -0400, Chris Hoover wrote: > Hey Everyone, > > Need some help with logical replication. I’m trying to move my mail 2.5TB database to a new postgres server and upgrade from 14-15 at the same time. I’m running into some strange issues. > > 1. my pg_replication_slots are filling up with entries that have no active pid. I can’t figure out what is going on here. Please consider reading https://www.depesz.com/2023/06/04/a-tale-about-incomplete-upgrade-from-postgresql-12-to-14/ Your problem is one of problems I encountered, and the post contains information how to work around it. Best regards, depesz