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 1qONB2-007doh-Pk for pgsql-admin@arkaria.postgresql.org; Tue, 25 Jul 2023 18:54:32 +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 1qONB1-000CbB-A3 for pgsql-admin@arkaria.postgresql.org; Tue, 25 Jul 2023 18:54:31 +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 1qONB0-000Cb0-Kp for pgsql-admin@lists.postgresql.org; Tue, 25 Jul 2023 18:54:30 +0000 Received: from mx0a-000e5c14.pphosted.com ([148.163.133.209]) by magus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qONAv-000JPr-Op for pgsql-admin@lists.postgresql.org; Tue, 25 Jul 2023 18:54:29 +0000 Received: from pps.filterd (m0206225.ppops.net [127.0.0.1]) by mx0a-000e5c14.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36PBhiYU015677; Tue, 25 Jul 2023 13:54:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=express-scripts.com; h=from : to : cc : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version : subject; s=pod140124231234; bh=yw6jj+dVUIMJcJWeaDLifgUtp5O1azN4GbaX84DkjKs=; b=XmTUgK+ZAx5ns+wVUokCXS/VeGaP1t5Tf2eWMsFr0BIMbQLs4CZ0SizQEN2ZAbVzKxaH XhB6NZIWhkW1G8gC43bZvI8+DZq2VlXOKmOuQHS6eGaz0J/y9uWqIdlcfU2VkpbTahFx 5EEFllCXi4ptuhD874YvzNXJMlQdfNV9ynAY8ncLiiJcaArSCWXWEtWO0s73DEU/VSoz JauxHXoAsexBLs1hy70jXUgVjChU+su1WpYr6rOWVz0CK1RIMfrPV9mbVTegku3mRv2b fFlU3AWfutSgFB98WTc7FFutg6uHbJ2388E5pPG3V4G+6xTtN7EDZySbsYqn/8WlHWSh LA== Received: from eiaappxp0007.gid.prd.globalcore.com ([170.48.0.130]) by mx0a-000e5c14.pphosted.com (PPS) with ESMTPS id 3s1nqcufxf-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 25 Jul 2023 13:54:17 -0500 Received: from cvlappxp20759.internal.cigna.com (HELO PS2PW1012185.accounts.root.corp) ([10.36.52.92]) by EIAAPPXP0007.gid.prd.globalcore.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jul 2023 18:54:15 +0000 Received: from PS2PW1012186.accounts.root.corp (10.221.225.154) by PS2PW1012185.accounts.root.corp (10.221.225.153) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.12; Tue, 25 Jul 2023 14:54:15 -0400 Received: from PS2PW1012186.accounts.root.corp ([fe80::ddfb:faf8:59ca:a8ec]) by PS2PW1012186.accounts.root.corp ([fe80::ddfb:faf8:59ca:a8ec%6]) with mapi id 15.02.1258.012; Tue, 25 Jul 2023 14:54:15 -0400 From: "Wetmore, Matthew (CTR)" To: Scott Ribe , Erik Serrano CC: Pgsql-admin Thread-Topic: [EXTERNAL] Re: Is a PS - MSSQL Logical Replication Possible?? Thread-Index: AQHZvixcQCT3xXeU4kOY09kLIZF3uq/Jtj0AgACkqACAAKbiAIAAA6kA///PkaA= Date: Tue, 25 Jul 2023 18:54:14 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.222.252.1] x-proofpoint-routing: 000e5c14 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-CFilter-Loop: Reflected Subject: Is a PS - MSSQL Logical Replication Possible?? X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-25_10,2023-07-25_01,2023-05-22_02 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Correct, and with dblink on logical slots. The gotcha is making the logica= l slots persistent in your network config. I have done db link from one table to another on my primary and then use th= at table as the source for processing data or whatever. But you will have to do custom work. The most annoying part of this is the MSSQL ::Postgres inconsistencies such= as date, numeric and float , bit::bool types. -----Original Message----- From: Scott Ribe =20 Sent: Tuesday, July 25, 2023 10:42 AM To: Erik Serrano Cc: Pgsql-admin Subject: [EXTERNAL] Re: Is a PS - MSSQL Logical Replication Possible?? > On Jul 25, 2023, at 11:29 AM, Erik Serrano wrote: >=20 > What you indicate is interesting, I am going to find out about the debezi= um and attunity programs. > Thank you very much for answering I don't know how those two are implemented--but for background on what is p= ossible, you might want to read up on PostgreSQL logical replication slots.= Essentially, one can write a plug-in which has access to a serialized stre= am of all updates being applied. There are examples which exist. So one cou= ld write such a thing that pushes to MSSQL, or one could use such a thing w= hich publishes change stream as JSON, and develop something to push this to= MSSQL. Not suggesting that *you* have to this--just that it's likely tools= are based on this, and it would be good for your understanding.