Commit Graph
9 Commits
Author SHA1 Message Date
Konstantin Knizhnik eea6f0898e Restore CLOG from snapshot 2021-04-30 14:22:47 +03:00
anastasia b49164a1d4 cargo fmt 2021-04-29 18:41:42 +03:00
anastasia e7b112aacc Refactor pg_constants. Move them to postgres_ffi/ 2021-04-29 18:41:42 +03:00
anastasia 421d586953 code cleanup for XLogRecord decoding 2021-04-28 13:56:27 +03:00
anastasia ef37eb96b9 refactor XLogRecord reading 2021-04-28 13:56:27 +03:00
Heikki Linnakangas 8af5cbedb1 Move xlog_utils.rs to postgres_ffi module.
I had copy-pasted these functions to a few other places. Clean that up,
move them to a common module, and add some comments.
2021-04-22 13:22:34 +03:00
Eric Seppanen 1f3f4cfaf5 clippy cleanup #2
- remove needless return
- remove needless format!
- remove a few more needless clone()
- from_str_radix(_, 10) -> .parse()
- remove needless reference
- remove needless `mut`

Also manually replaced a match statement with map_err() because after
clippy was done with it, there was almost nothing left in the match
expression.
2021-04-21 17:56:58 -07:00
Eric Seppanen 92e4f4b3b6 cargo fmt 2021-04-20 17:59:56 -07:00
Heikki Linnakangas b451ede199 Use rust bindgen for reading/writing the PostgreSQL control file. 2021-04-20 15:57:05 +03:00