ihippik / wal-listener

PostgreSQL WAL listener
Apache License 2.0
296 stars 44 forks source link

Raise an error if the replication slot is alive #44

Open StephenSorriaux opened 2 weeks ago

StephenSorriaux commented 2 weeks ago

Before this change the listener could get forever stuck doing nothing since StartReplication() does not raise an error if the replication slot is already active. Added IsReplicationActive() to the repository to check it before starting the stream.