pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Logical replication stops updating
6+ messages / 2 participants
[nested] [flat]

* Logical replication stops updating
@ 2020-12-21 09:48  Yambu <hyambu@gmail.com>
  0 siblings, 1 reply; 6+ messages in thread

From: Yambu @ 2020-12-21 09:48 UTC (permalink / raw)
  To: Pgsql-admin <pgsql-admin@lists.postgresql.org>

Hi

My logical replication stopped updating, how do i make it start again?

^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: Logical replication stops updating
@ 2020-12-21 09:51  Laurenz Albe <laurenz.albe@cybertec.at>
  parent: Yambu <hyambu@gmail.com>
  0 siblings, 1 reply; 6+ messages in thread

From: Laurenz Albe @ 2020-12-21 09:51 UTC (permalink / raw)
  To: Yambu <hyambu@gmail.com>; Pgsql-admin <pgsql-admin@lists.postgresql.org>

On Mon, 2020-12-21 at 11:48 +0200, Yambu wrote:
> My logical replication stopped updating, how do i make it start again?

Read the standby log file and fix the problem you see there.

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com






^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: Logical replication stops updating
@ 2020-12-21 10:09  Yambu <hyambu@gmail.com>
  parent: Laurenz Albe <laurenz.albe@cybertec.at>
  0 siblings, 1 reply; 6+ messages in thread

From: Yambu @ 2020-12-21 10:09 UTC (permalink / raw)
  To: Laurenz Albe <laurenz.albe@cybertec.at>; +Cc: Pgsql-admin <pgsql-admin@lists.postgresql.org>

Thanks Laurenz,

I got the error below, and i added the primary key on slave table1, but how
do i fix the other error  " published relation does not have REPLICA
IDENTITY FULL"

logical replication target relation "public.table1" has neither REPLICA
IDENTITY index nor PRIMARY KEY and published relation does not have REPLICA
IDENTITY FULL

On Mon, Dec 21, 2020 at 11:51 AM Laurenz Albe <laurenz.albe@cybertec.at>
wrote:

> On Mon, 2020-12-21 at 11:48 +0200, Yambu wrote:
> > My logical replication stopped updating, how do i make it start again?
>
> Read the standby log file and fix the problem you see there.
>
> Yours,
> Laurenz Albe
> --
> Cybertec | https://www.cybertec-postgresql.com
>
>

^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: Logical replication stops updating
@ 2020-12-21 11:13  Yambu <hyambu@gmail.com>
  parent: Yambu <hyambu@gmail.com>
  0 siblings, 1 reply; 6+ messages in thread

From: Yambu @ 2020-12-21 11:13 UTC (permalink / raw)
  To: Laurenz Albe <laurenz.albe@cybertec.at>; +Cc: Pgsql-admin <pgsql-admin@lists.postgresql.org>

Hello

I see this error

 ERROR:  could not start WAL streaming: ERROR:  replication slot "slot1" is
active for PID 28212
2020-12-21 11:01:25.630 GMT [1894324] LOG:  background worker "logical
replication worker" (PID 1894333) exited with exit code 1

On Mon, Dec 21, 2020 at 12:09 PM Yambu <hyambu@gmail.com> wrote:

> Thanks Laurenz,
>
> I got the error below, and i added the primary key on slave table1, but
> how do i fix the other error  " published relation does not have REPLICA
> IDENTITY FULL"
>
> logical replication target relation "public.table1" has neither REPLICA
> IDENTITY index nor PRIMARY KEY and published relation does not have REPLICA
> IDENTITY FULL
>
> On Mon, Dec 21, 2020 at 11:51 AM Laurenz Albe <laurenz.albe@cybertec.at>
> wrote:
>
>> On Mon, 2020-12-21 at 11:48 +0200, Yambu wrote:
>> > My logical replication stopped updating, how do i make it start again?
>>
>> Read the standby log file and fix the problem you see there.
>>
>> Yours,
>> Laurenz Albe
>> --
>> Cybertec | https://www.cybertec-postgresql.com
>>
>>

^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: Logical replication stops updating
@ 2020-12-21 11:51  Yambu <hyambu@gmail.com>
  parent: Yambu <hyambu@gmail.com>
  0 siblings, 1 reply; 6+ messages in thread

From: Yambu @ 2020-12-21 11:51 UTC (permalink / raw)
  To: Laurenz Albe <laurenz.albe@cybertec.at>; +Cc: Pgsql-admin <pgsql-admin@lists.postgresql.org>

Now i get no errors after increasing wal_receiver_ timeout  and
 wal_sender_timeout to 300s on master and slave.

But the slave tables are not getting updates, do i need to do anything
since they were so far behind?

On Mon, Dec 21, 2020 at 1:13 PM Yambu <hyambu@gmail.com> wrote:

> Hello
>
> I see this error
>
>  ERROR:  could not start WAL streaming: ERROR:  replication slot "slot1"
> is active for PID 28212
> 2020-12-21 11:01:25.630 GMT [1894324] LOG:  background worker "logical
> replication worker" (PID 1894333) exited with exit code 1
>
> On Mon, Dec 21, 2020 at 12:09 PM Yambu <hyambu@gmail.com> wrote:
>
>> Thanks Laurenz,
>>
>> I got the error below, and i added the primary key on slave table1, but
>> how do i fix the other error  " published relation does not have REPLICA
>> IDENTITY FULL"
>>
>> logical replication target relation "public.table1" has neither REPLICA
>> IDENTITY index nor PRIMARY KEY and published relation does not have REPLICA
>> IDENTITY FULL
>>
>> On Mon, Dec 21, 2020 at 11:51 AM Laurenz Albe <laurenz.albe@cybertec.at>
>> wrote:
>>
>>> On Mon, 2020-12-21 at 11:48 +0200, Yambu wrote:
>>> > My logical replication stopped updating, how do i make it start again?
>>>
>>> Read the standby log file and fix the problem you see there.
>>>
>>> Yours,
>>> Laurenz Albe
>>> --
>>> Cybertec | https://www.cybertec-postgresql.com
>>>
>>>

^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: Logical replication stops updating
@ 2020-12-21 13:01  Yambu <hyambu@gmail.com>
  parent: Yambu <hyambu@gmail.com>
  0 siblings, 0 replies; 6+ messages in thread

From: Yambu @ 2020-12-21 13:01 UTC (permalink / raw)
  To: Laurenz Albe <laurenz.albe@cybertec.at>; +Cc: Pgsql-admin <pgsql-admin@lists.postgresql.org>

No worries, the slave replica has now been updated and in sync.

The change I made of increasing the wal_receiver_ timeout  and
 wal_sender_timeout and putting indexes on replicated tables solved it, and
I just had to wait for the slave to catch up.

On Mon, Dec 21, 2020 at 1:51 PM Yambu <hyambu@gmail.com> wrote:

> Now i get no errors after increasing wal_receiver_ timeout  and
>  wal_sender_timeout to 300s on master and slave.
>
> But the slave tables are not getting updates, do i need to do anything
> since they were so far behind?
>
> On Mon, Dec 21, 2020 at 1:13 PM Yambu <hyambu@gmail.com> wrote:
>
>> Hello
>>
>> I see this error
>>
>>  ERROR:  could not start WAL streaming: ERROR:  replication slot "slot1"
>> is active for PID 28212
>> 2020-12-21 11:01:25.630 GMT [1894324] LOG:  background worker "logical
>> replication worker" (PID 1894333) exited with exit code 1
>>
>> On Mon, Dec 21, 2020 at 12:09 PM Yambu <hyambu@gmail.com> wrote:
>>
>>> Thanks Laurenz,
>>>
>>> I got the error below, and i added the primary key on slave table1, but
>>> how do i fix the other error  " published relation does not have REPLICA
>>> IDENTITY FULL"
>>>
>>> logical replication target relation "public.table1" has neither REPLICA
>>> IDENTITY index nor PRIMARY KEY and published relation does not have REPLICA
>>> IDENTITY FULL
>>>
>>> On Mon, Dec 21, 2020 at 11:51 AM Laurenz Albe <laurenz.albe@cybertec.at>
>>> wrote:
>>>
>>>> On Mon, 2020-12-21 at 11:48 +0200, Yambu wrote:
>>>> > My logical replication stopped updating, how do i make it start again?
>>>>
>>>> Read the standby log file and fix the problem you see there.
>>>>
>>>> Yours,
>>>> Laurenz Albe
>>>> --
>>>> Cybertec | https://www.cybertec-postgresql.com
>>>>
>>>>

^ permalink  raw  reply  [nested|flat] 6+ messages in thread


end of thread, other threads:[~2020-12-21 13:01 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-12-21 09:48 Logical replication stops updating Yambu <hyambu@gmail.com>
2020-12-21 09:51 ` Laurenz Albe <laurenz.albe@cybertec.at>
2020-12-21 10:09   ` Yambu <hyambu@gmail.com>
2020-12-21 11:13     ` Yambu <hyambu@gmail.com>
2020-12-21 11:51       ` Yambu <hyambu@gmail.com>
2020-12-21 13:01         ` Yambu <hyambu@gmail.com>

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