Re: Heavy Logging in Subscriber side when configured LogicalReplication in 10.4 - Mailing list pgsql-admin

From soumitra bhandary
Subject Re: Heavy Logging in Subscriber side when configured LogicalReplication in 10.4
Date
Msg-id MA1PR0101MB1687B5878714AA511B9E3697E00C0@MA1PR0101MB1687.INDPRD01.PROD.OUTLOOK.COM
Whole thread Raw
In response to Re: Heavy Logging in Subscriber side when configured LogicalReplication in 10.4  (pavan95 <pavan.postgresdba@gmail.com>)
Responses Re: Heavy Logging in Subscriber side when configured LogicalReplication in 10.4  (pavan95 <pavan.postgresdba@gmail.com>)
List pgsql-admin
There are multiple ways to deal with this . Also you have not mentioned the nature of the environment . 

Check the Postgres log file , at the server where you are getting this primary key violation error . Along with error message it should print the error value as well . Take the same value and verify at table . 

Another  way to handle the scenario (considering it as production / client side environment) , take the table dump , using pgdump from each  DB server . Restore those 2 dump into 2 different tabel , in some different server . After that that you can easily find out the duplicate key value by query . 

Hope this will resolve your issue . 

Thanks ,
Soumitra 

From: pavan95 <pavan.postgresdba@gmail.com>
Sent: Monday, September 3, 2018 11:33 AM
To: pgsql-admin@postgresql.org
Subject: Re: Heavy Logging in Subscriber side when configured Logical Replication in 10.4
 
Hi Soumitra,

Thanks for your timely response.

>>This may be due to several reason , so you have to remove that conflict
first .

Could you suggest me a way to do it. I am unable to figure out why this data
integrity came into picture(like why it is failing). In order to reduce this
what are measures to cope with??

Thanks in Advance.

Regards,
Pavan



--
Sent from: http://www.postgresql-archive.org/PostgreSQL-admin-f2076596.html

pgsql-admin by date:

Previous
From: pavan95
Date:
Subject: Re: Heavy Logging in Subscriber side when configured LogicalReplication in 10.4
Next
From: soumitra bhandary
Date:
Subject: Re: Not able to increase TPS in Postgres BDR set up using pgbenchutility