Our logical replication has started to fail with a lot of these errors on the subscriber:
ERROR: could not create replication slot
"pg_148211637_sync_148178452_7161337762731575223": ERROR: all replication slots are in use
May 2 07:43:01 psql-06 postgres[1195903]: [2] HINT: Free one or increase max_replication_slots.
May 2 07:43:01 psql-06 postgres[1181479]: [1] LOG: background worker "logical replication worker" (PID 1195903) exited with exit code 1
May 2 07:43:01 psql-06 postgres[1195905]: [1] LOG: logical replication table synchronization worker for subscription "sub_production", table "products" has started
May 2 07:43:01 psql-06 postgres[1195901]: [1] LOG: could not drop replication slot "pg_148211637_sync_148183118_7161337762731575223" on publisher: ERROR: replication slot "pg_148211637_sync_148183118_7161337762731575223" does not exist
It seems like it's constantly trying drop the replication slot pg_148211637_sync_148183118_7161337762731575223
on the publisher, but somehow it does not exists?
How can such a situation occur, and how do I resolve it/resume the replication?