Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR is debugging an issue where schema change propagation (#368) don't apply properly when there are parallel transactions happening during an ALTER TABLE statement. Borrowing from jackc/pglogrepl#59 This PR changes the handling of clientXLogPos to match the one from Postgres' own `pg_recvlogical`: - keepalive messages should bump the position too, as they're only sent (from what I can tell) after any xlogdata message; - both the WALStart and the ServerWALEnd in logical xlogdata messages represent the position that should be reported back, and adding the length of the post-decoding data to it is meaningless; - relation messages have a position of zero, and in general we should match the pg_recvlogical behavior of only increasing the local position. --------- Co-authored-by: Kaushik Iska <[email protected]>
- Loading branch information