Re: Seeded Replication - Mailing list pgsql-general

From Pavan Teja
Subject Re: Seeded Replication
Date
Msg-id CACh9nsY8XrsdMo4dFPO+YX5cFgGYNQr-fnO0oi4ryVZC+Vqfiw@mail.gmail.com
Whole thread Raw
In response to Seeded Replication  (Lou Tseng <ltseng@advancedpricing.com>)
Responses Re: Seeded Replication
List pgsql-general
Hi Lou,

Did you restore data on the subscriber during the first time. If yes this error is likely to occur. 

As a remedy, you need to restore only structural dump during initial building of subscription.

Earlier the same issue was faced by me later it got resolved following the above said approach. 

Kindly revert back if any queries. 

Regards, 
Pavan Teja, 
9841380956 

On Wed, 3 Apr, 2019, 5:15 PM Lou Tseng, <ltseng@advancedpricing.com> wrote:
Hi, 

We are working on a project to set up replication from on premises Postgresql 10.4 to Azure Postgresql services. However, our database is about 200G and it will take a long time to complete the initial data copy.  We would like to manually seed the subscriber database with data dump and then turn on the subscription like depesz showed in this post https://www.depesz.com/2017/02/07/waiting-for-postgresql-10-logical-replication/ .  It works for the small testing database but when I applied same steps with entire database, I am getting "ERROR:  duplicate key value violates unique constraint" errors. Basically postgresql does not recognize the primary key.

Any thought / suggestion is helpful!

Lou Tseng

ltseng@advancedpricing.com
Advanced Medical Pricing Solutions
35 Technology Parkway South, Suite. 100
Peachtree Corners, GA 30092

pgsql-general by date:

Previous
From: Lou Tseng
Date:
Subject: Seeded Replication
Next
From: Felix Ableitner
Date:
Subject: SQL queries not matching on certain fields