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 1oFB8t-0000xZ-NX for pgsql-general@arkaria.postgresql.org; Sat, 23 Jul 2022 09:09:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oFB8s-0007LS-CO for pgsql-general@arkaria.postgresql.org; Sat, 23 Jul 2022 09:09:46 +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 1oFB8r-0007LJ-Tb for pgsql-general@lists.postgresql.org; Sat, 23 Jul 2022 09:09:46 +0000 Received: from campbell-lange.net ([178.79.140.51]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oFB8p-0002WG-Mb for pgsql-general@lists.postgresql.org; Sat, 23 Jul 2022 09:09:45 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=campbell-lange.net; s=it; h=Content-Type:MIME-Version:Message-ID:Subject:To :From:Date:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=1uX9X7o9Qsn0kQFpSSNCcZXdQRpAP3r2wJHj4cPWqY0=; b=oWHs80yhrq7GBxKXq8veXTNt3J 5NskomSg0sOrf6EL1E8qycesFJAe2pyUMrCQpJUNb2W8TtbKBYgBTKkXyJw8P4Ae3l60ab7MMg4+L FmldhoTucwVTiKdqqG2aVyX5PT8IBYlMy7HbjaQjGF8ZJV+u76b62pZQgHmecmG6kgP4=; Received: from [217.138.52.158] (helo=rory-t470s) by campbell-lange.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1oFB8n-0067gf-LT for pgsql-general@lists.postgresql.org; Sat, 23 Jul 2022 09:09:41 +0000 Received: from rory by rory-t470s with local (Exim 4.94.2) (envelope-from ) id 1oFB8m-0033Mp-Tm for pgsql-general@lists.postgresql.org; Sat, 23 Jul 2022 10:09:40 +0100 Date: Sat, 23 Jul 2022 10:09:40 +0100 From: Rory Campbell-Lange To: pgsql-general@lists.postgresql.org Subject: Logical replication versus pglogical on PostgreSQL 14 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk I'm keen to learn of the differences between logical replication in PostgreSQL 14 and how this is different from the pglogical extension. Our intended use case is to have 200-300 publishers off many small databases aggregating to 20-30 central databases on another PostgreSQL instance on the same machine. My questions are: Is native logical replication and pglogical replication fundamentally the same? Is pglogical likely to be continue to be supported? Is there a roadmap for including more pglogical functionality in native logical replication? The following pglogical management functions seem particularly useful to our use case: * pglogical.replicate_ddl_command sync publisher ddl changes with subscriber * pglogical.alter_subscription_synchronize pglogical.wait_for_subscription_sync_complete/ pglogical.wait_slot_confirm_lsn sync subscription tables * pglogical.wait_slot_confirm_lsn assess if all subscribers are up-to-date (monitoring this in native logical replication seems tricky) Thanks for any comments Rory