Heikki Linnakangas
84cd40b416
rustfmt fixes.
...
Not sure why these don't show up as CI failures, but on my laptop,
rustfmt insists.
2022-08-19 22:21:15 +03:00
Heikki Linnakangas
9bc12f7444
Move auto-generated 'bindings' to a separate inner module.
...
Re-export only things that are used by other modules.
In the future, I'm imagining that we run bindgen twice, for Postgres
v14 and v15. The two sets of bindings would go into separate
'bindings_v14' and 'bindings_v15' modules.
Rearrange postgres_ffi modules.
Move function, to avoid Postgres version dependency in timelines.rs
Move function to generate a logical-message WAL record to postgres_ffi.
2022-08-18 13:25:00 +03:00
Egor Suvorov
a7bf60631f
postgres_ffi/waldecoder: introduce explicit enum State
...
Previously it was emulated with a combination of nullable fields.
This change should make the logic more readable.
2022-08-12 11:40:46 +03:00
Egor Suvorov
07bb7a2afe
postgres_ffi/waldecoder: remove unused startlsn
2022-08-12 11:40:46 +03:00
Egor Suvorov
142e247e85
postgres_ffi/waldecoder: validate more header fields
2022-08-12 11:40:46 +03:00
Egor Suvorov
80b7a3b51a
Test what happens when XLOG_SWITCH ends on page boundary, fix #1991
2022-07-08 15:37:26 +02:00
Egor Suvorov
85bda437de
postgres_ffi/wal_generate: add last_wal_record_xlog_switch and use it in tests
...
Fix #1190 : WalDecoder did not return correct LSN of the next record after
processing a XLOG_SWITCH record
2022-07-08 15:37:26 +02:00
Kian-Meng Ang
f1c51a1267
Fix typos
2022-05-28 14:02:05 +03:00
bojanserafimov
bc569dde51
Remove some unwraps from waldecoder ( #1539 )
2022-05-04 17:41:05 -04:00
Kirill Bulatov
81cad6277a
Move and library crates into a dedicated directory and rename them
2022-04-21 13:30:33 +03:00