Chase Granberry
Chase Granberry
> I'm not sure what to do when there is wal drift. Maybe disconnect? Drift how exactly? If the replication slot is `temporary` then disconnecting and reconnecting will reset the...
jfyi [pg_logical_slot_peek_changes()](https://pgpedia.info/p/pg_logical_slot_peek_changes.html) could be useful for testing. You have to call it from the replication slot connection.
> Staying connected I noticed postgres does not send the wal again. Reconnecting to the same replication slot seems like a valid way to do it. Perhaps there is an...
ChatGPT says: ``` The master does not actively resend unacknowledged records in the same session but retains them until the subscriber reconnects or requests them again. This ensures reliable delivery...
The [wal_sender_timeout](https://www.postgresql.org/docs/current/runtime-config-replication.html#GUC-WAL-SENDER-TIMEOUT) config seems to confirm this. If you do not ack a wal record in 60 seconds the primary will disconnect the subscriber.