From: | "Magri, Sebastian" <sebastian(dot)magri(at)radancy(dot)com> |
---|---|
To: | "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org> |
Subject: | Running into hangs with logical replication |
Date: | 2021-08-31 11:58:06 |
Message-ID: | BYAPR08MB4358112B41A049D28546108BFDCC9@BYAPR08MB4358.namprd08.prod.outlook.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hey folks!
We've been having some issues with logical replication.
After some time running and streaming messages to 1 client, it seemingly hangs.
We don't see the sent_lsn value increase anymore, so the client itself doesn't seem to ever get new messages and thus doesn't send any feedback.
When we close the client application, making sure we close the connection client side, sometimes the backend stays alive and doesn't allow us to drop the logical replication slot unless we pg_terminate_backend it. Even then, most of the time trying to drop the replication slot returns "active for PID foo" error even after pg_terminate_backend(foo) returned true, multiple times.
Before the replication hangs, we've seen normally we keep getting the same wal_end LSN in the replication messages for a few, which could indicate we don't have anything coming into the replication slot. Is this assumption correct?
This server also has a physical replication set up with 1 replica, which is one of the differences we have with a non-physically replicated instance that we're using to compare, and which doesn't seem to surface this issue.
I'm looking for some guidance or ideas about what to investigate further to sort out this behavior.
Thanks in advance.
From | Date | Subject | |
---|---|---|---|
Next Message | Matt Zagrabelny | 2021-08-31 16:05:56 | echo of \C foo |
Previous Message | Peter J. Holzer | 2021-08-31 11:43:34 | Re: Can't locate Ora2Pg.pm while executing export_schema.sh |