Commit Graph

4 Commits

Author SHA1 Message Date
Vlad Lazar
0a13a06053 wal_decoder: add compression support 2024-11-25 18:35:48 +01:00
Vlad Lazar
6009d9fe4d wal_decoder: add protobuf support
The bulk of this commit is glue code to convert between protobuf
representation and in-memory representation.
2024-11-25 18:35:48 +01:00
Vlad Lazar
8ffb1c1e51 wal_decoder: define records batch type
Instead of serializing a vector of records over the wire,
define a type for it. Also include next_record_lsn into that type
to get varint encoding.
2024-11-25 18:35:47 +01:00
Vlad Lazar
7b0f1605b2 wal_decoder: abstract wire format
We want to add new wire formats, but the current code has bincode
hard-codeded.

To this end:
1. Rework the wal_receiver_protocol PS config to include a format
   modifier for interpreted protocol type.
2. Abstract wire format encoding and decoding to a separate module
   in wal_decoder
3. Glue things back together
2024-11-25 18:34:15 +01:00