pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Holger Jakobs <holger@jakobs.com>
To: pgsql-admin@lists.postgresql.org
Subject: Re: Mssql to postgres migration
Date: Thu, 28 Mar 2024 19:08:53 +0100
Message-ID: <c0c3d835-93e3-aeb7-34df-eaadfd8d507a@jakobs.com> (raw)
In-Reply-To: <CAJk5AtYUsVs4pybZ-s3NE435dQauu2XWQAjeDjHus4+WE-kcoQ@mail.gmail.com>
References: <CAJk5AtYUsVs4pybZ-s3NE435dQauu2XWQAjeDjHus4+WE-kcoQ@mail.gmail.com>

Am 28.03.24 um 18:57 schrieb Rajesh Kumar:
> Hi
>
> Is it possible to migrate from mssql to postgres?
>
> Any links available?
>
> Can I setup postgres DA like location1: 1 master and 1 slave and 
> location2: 1 master and 1 slave ?
>
>
> Is there a better way to set up DA?
>
> I am very very new to these topics..I have searched enough in 
> internet. Could not find the right source.

Yes, of course a migration is possible. Any migration is.

Unfortunately, there are less tools available compared to the migration 
from Oracle. Just have a look at the foreign data wrappers for these 
systems. The Oracle FDW is well maintained, documented and has many 
features. The MS SQL FDW is old, not well documented and is lacking many 
features. It can't even write or push down anything.

Some tool that might help are:

  * pgLoader
  * sqlserver2pgsql

M$ people like to call the product "Microsoft SQL Server" just "SQL 
Server", as if it was THE SQL Server and  PostgreSQL, Oracle or DB2 
weren't SQL Servers.

There is a Schema Conversion Tool by AWS in case you want to migrate to 
PostgreSQL on AWS. Maybe it's possible to go this way and then continue 
to on-premise PostgreSQL.

With PostgreSQL you always have 1 Primary (formerly called Master) and 
any number of Secondaries (formerly called Slaves). So no, you cannot 
have two Primaries, whether in a single or in two separate locations.

Keeping several Primaries completely in Sync and continuously 
maintaining ACID makes everything so slow that it is hardly a sensible 
solution.

"Multi-Master" promises a lot, but keeps little.

Kind Regards,

Holger

-- 

Holger Jakobs, Bergisch Gladbach, Tel. +49-178-9759012

chat with me on Signal messenger 
<https://signal.me/#eu/GpIP259bBne_JiBYJFvbZCLYJELhB-92nJfncACL1LUeBOphfXFFgLYYVXv_AGhg;



Attachments:

  [image/png] SkJ8gBgoAxb5WfIM.png (551B, ../c0c3d835-93e3-aeb7-34df-eaadfd8d507a@jakobs.com/3-SkJ8gBgoAxb5WfIM.png)
  download | view image

  [application/pgp-signature] OpenPGP_signature (202B, ../c0c3d835-93e3-aeb7-34df-eaadfd8d507a@jakobs.com/4-OpenPGP_signature)
  download

view thread (6+ messages)  latest in thread

Message-ID: <c0c3d835-93e3-aeb7-34df-eaadfd8d507a@jakobs.com>
Permalink:  ../c0c3d835-93e3-aeb7-34df-eaadfd8d507a@jakobs.com/
Also on:    postgresql.org/message-id/c0c3d835-93e3-aeb7-34df-eaadfd8d507a@jakobs.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: holger@jakobs.com, pgsql-admin@lists.postgresql.org
  Subject: Re: Mssql to postgres migration
  In-Reply-To: <c0c3d835-93e3-aeb7-34df-eaadfd8d507a@jakobs.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox