jackc / pglogrepl

PostgreSQL logical replication library for Go.
MIT License
336 stars 63 forks source link

Fix clientXLogPos handling in pglogrepl_demo #59

Closed espadolini closed 1 year ago

espadolini commented 1 year ago

This PR changes the handling of clientXLogPos to match the one from Postgres' own pg_recvlogical:

espadolini commented 1 year ago

As a bonus, this fixes #20 for me; without bumping the local position on keepalive, a shutting down Postgres just keeps spamming my client with keepalive messages for 10 seconds before hard disconnecting the replication connection.

jackc commented 1 year ago

👍