Re: Streaming replication issue post upgrade from version 11 to 14 on windows 2016 Server

2024-08-06 Thread Muhammad Ikram
Hi Vamsi, We have been doing these steps to setup streaming replication --Primay-Server CREATE ROLE repl REPLICATION LOGIN PASSWORD 'your_password'; postgresql.conf listen_addresses = '*' wal_level = replica archive_mode = on archive_command = 'copy %p \\path_to_archive\\%f' max_wal_senders =

Streaming replication issue post upgrade from version 11 to 14 on windows 2016 Server

2024-08-06 Thread Vamsi Chava
Hi Team, we have upgraded postgresql version 11 to 14 on windows server 2016, post upgrade we configured streaming replication. the data is not getting replicated. but compared to version 11, 14 is very different in configuring replication. Tried from documentation from postgres site. no luck, Any

Re: Logical replication issue after Postgresql upgrade from 13 to 14

2021-12-01 Thread Amit Kapila
On Wed, Dec 1, 2021 at 5:56 PM Marcos Pegoraro wrote: > >> I have an issue with logical replication after Postgresql upgrade from >> 13 to 14 (upgraded subscriber only using pg_upgrade_cluster -m link 13 >> main). After upgrade all subscriptions were disabled so I have enabled >> them and replicat

Re: Logical replication issue after Postgresql upgrade from 13 to 14

2021-12-01 Thread Sergey Belyashov
I think there are some bugs in Posgresql logical replication upgrade. Because dropping and recreating subscriptions with manual synchronization has solved the problem for me. But it is not the correct way, IMHO. Sergey Belyashov ср, 1 дек. 2021 г. в 15:26, Marcos Pegoraro : > > >> I have an issue

Re: Logical replication issue after Postgresql upgrade from 13 to 14

2021-12-01 Thread Marcos Pegoraro
> I have an issue with logical replication after Postgresql upgrade from > 13 to 14 (upgraded subscriber only using pg_upgrade_cluster -m link 13 > main). After upgrade all subscriptions were disabled so I have enabled > them and replication workers successfully started. > pg_stat_subscription cont

Logical replication issue after Postgresql upgrade from 13 to 14

2021-11-30 Thread Sergey Belyashov
I have an issue with logical replication after Postgresql upgrade from 13 to 14 (upgraded subscriber only using pg_upgrade_cluster -m link 13 main). After upgrade all subscriptions were disabled so I have enabled them and replication workers successfully started. pg_stat_subscription contains list

Doubt regarding Postgres replication issue

2021-11-22 Thread Palani vel
Hi Team, Greetings!  I have a doubt regarding Postgres replication. I am able to create replication setup. But when the network is down for 60 seconds, the replication was broken. Communication is broken between Master and slave. Slave is trying to become master and it is not able to sync with m

Re: Questions about Logical Replication - Issue ???

2020-07-31 Thread FOUTE K . Jaurès
hello Kyotaro, thx for you feedback and clarification. Le ven. 31 juil. 2020 à 02:13, Kyotaro Horiguchi a écrit : > Hi, > > At Thu, 30 Jul 2020 14:54:08 +0100, FOUTE K. Jaurès > wrote in > > Hi everyone, > > > > Situation: > > > >- A Master Database on the HQ > >- i make a dump of th

Re: Questions about Logical Replication - Issue ???

2020-07-30 Thread Kyotaro Horiguchi
Hi, At Thu, 30 Jul 2020 14:54:08 +0100, FOUTE K. Jaurès wrote in > Hi everyone, > > Situation: > >- A Master Database on the HQ >- i make a dump of the master database to the Subdivision Server >- I create à Publication like: CREATE PUBLICATION >iNOV_MasterData_Table_Pub FOR T

Questions about Logical Replication - Issue ???

2020-07-30 Thread FOUTE K . Jaurès
Hi everyone, Situation: - A Master Database on the HQ - i make a dump of the master database to the Subdivision Server - I create à Publication like: CREATE PUBLICATION iNOV_MasterData_Table_Pub FOR TABLE M_Product; On the Master Database - On the Subdivision Server, I create a Sub

Re: Logical Replication Issue

2020-06-30 Thread Donzell White
My table has a primary key.  In addition, this is an initial load issue where the replication identity should not matter. -Original Message- From: Michael Lewis To: Donzell White Cc: pgsql-general Sent: Tue, Jun 30, 2020 1:05 pm Subject: Re: Logical Replication Issue Per the release

Re: Logical Replication Issue

2020-06-30 Thread Michael Lewis
Per the release notes, there are some enhancements to logical replication that came after 11.5 like 11.8 particularly related to replication identity full. Do you have a primary key or unique index that is being used for the replication identity?

Logical Replication Issue

2020-06-30 Thread Donzell White
Hi, I have set up logical replication from an AWS RDS instance to a postgreSQL database on an EC2 instance. I am getting an “out of memory” error during the initial for one of the tables. I have include a snippet of the error at the bottom of this email. The snippet below repeats every four or e

Re: Replication issue

2020-04-18 Thread Adrian Klaver
On 4/17/20 7:47 AM, Sonam Sharma wrote: Yes, you are right. It's for connection failover from application end. I have set up db replication using repmgr. Version : 9.5 Can you reach the database crowd at host 172.29.195.216:50001 using psql or some other client? On Fri, Apr 17, 2020, 8:

Re: Replication issue

2020-04-17 Thread Sonam Sharma
Yes, you are right. It's for connection failover from application end. I have set up db replication using repmgr. Version : 9.5 On Fri, Apr 17, 2020, 8:15 PM Julien Rouhaud wrote: > On Fri, Apr 17, 2020 at 4:02 PM Adrian Klaver > wrote: > > > > On 4/17/20 6:31 AM, Sonam Sharma wrote: > > > I

Re: Replication issue

2020-04-17 Thread Julien Rouhaud
On Fri, Apr 17, 2020 at 4:02 PM Adrian Klaver wrote: > > On 4/17/20 6:31 AM, Sonam Sharma wrote: > > I have setup db replication. And added below parameter in jdbc file . > > The connection is failing and it's throwing error like db doesn't exist > > on secondary server. > > > > jdbc:postgresql://

Re: Replication issue

2020-04-17 Thread Adrian Klaver
On 4/17/20 6:31 AM, Sonam Sharma wrote: I have setup db replication. And added below parameter in jdbc file . The connection is failing and it's throwing error like db doesn't exist on secondary server. jdbc:postgresql://:50001,172.29.195.216:50001/crowd?targetServerType=master&reWriteBatchedI

Replication issue

2020-04-17 Thread Sonam Sharma
I have setup db replication. And added below parameter in jdbc file . The connection is failing and it's throwing error like db doesn't exist on secondary server. jdbc:postgresql://:50001, 172.29.195.216:50001/crowd?targetServerType=master&reWriteBatchedInserts=true .PSQLException: FATAL: datab

Logical replication issue

2019-11-18 Thread Aleš Zelený
Hello, we are using logical replication from PostgreSQL 10.8 (Ubuntu 10.8-1.pgdg14.04+1) to PostgreSQL 11.3 (Ubuntu 11.3-1.pgdg18.04+1). Thre are 1305 replicated tables within 3 schemas. The tables are from small almost static lookup tables to larger tables up to ~40GB holding 44 millions of row

Re: Urgent :: Postgresql streaming replication issue - sync mode

2019-10-03 Thread Laurenz Albe
On Fri, 2019-10-04 at 00:34 +1000, Jason Wang wrote: > I read this > https://www.2ndquadrant.com/en/blog/evolution-fault-tolerance-postgresql-synchronous-commit/ > > But don't see why your primary would have more records than the > standby? > > If killall was issued before commit returned, that

Re: Urgent :: Postgresql streaming replication issue - sync mode

2019-10-03 Thread Jason Wang
I read this https://www.2ndquadrant.com/en/blog/evolution-fault-tolerance-postgresql-synchronous-commit/ But don't see why your primary would have more records than the standby? If killall was issued before commit returned, that means the transaction wasn't completed so yes you would lose records

Re: Urgent :: Postgresql streaming replication issue - sync mode

2019-10-03 Thread Laurenz Albe
On Wed, 2019-10-02 at 23:58 +0530, Shital A wrote: > We are seeing a strange issue with postgresql streaming application > in sync mode. > > We are using postgresql 9.6. Old version because of some specific > requirements. We have setup cluster with master-standby using > pacemaker. > > When w

Re: Urgent :: Postgresql streaming replication issue - sync mode

2019-10-02 Thread Shital A
On Thu, 3 Oct 2019, 03:10 Jason Wang, wrote: > I think when you use kill -9 it wouldn't give any chance for postgres to > do what it normally does. So in your case, the db was killed with no chance > to apply to remote then it would be up to the recovery to decide how to > handle the extra data a

Re: Urgent :: Postgresql streaming replication issue - sync mode

2019-10-02 Thread Shital A
On Thu, 3 Oct 2019, 00:08 Ravi Krishna, wrote: > > > > As the failed primary is having more data, How is it possible that > primary is committing transaction before they were applied on standby with > synchronous_commit=remote_apply? > > If I am not mistaken remote_apply is only from ver 11. > H

Re: Urgent :: Postgresql streaming replication issue - sync mode

2019-10-02 Thread Ravi Krishna
> > As the failed primary is having more data, How is it possible that primary is > committing transaction before they were applied on standby with > synchronous_commit=remote_apply? If I am not mistaken remote_apply is only from ver 11.

Urgent :: Postgresql streaming replication issue - sync mode

2019-10-02 Thread Shital A
Hello, We are seeing a strange issue with postgresql streaming application in sync mode. We are using postgresql 9.6. Old version because of some specific requirements. We have setup cluster with master-standby using pacemaker. When we kill master using killall -9 postgres. The failed primary h

Logical replication issue with row level trigger

2019-01-13 Thread Aleš Zelený
Hello, I've found an issue with logical replication causing 1) large memory allocation by wal sender process (RSS 60GB) 2) large amount of "xid" files in $PGDATA/pg_replslot/ directory - seems to be amount of rows handled by trigger + few more Having several millions of files in a single director