Heikki Linnakangas
61af9bb889
Move a few functions that have been copy-pasted around to shared module.
2021-05-06 21:57:10 +03:00
Heikki Linnakangas
33d126ecbe
Tidy up usage of a few constants from PostgreSQL headers.
2021-05-06 21:57:01 +03:00
anastasia
15db0d1d6f
refactor walreciever and restore_local_repo
2021-05-06 12:58:08 +03:00
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
Heikki Linnakangas
41a3772e90
Replace pgbuild.sh with a Makefile
...
This allows building both Zenith and PostgreSQL in one command. The
command is 'make'
Reviewed-by: Arseny Sher <sher-ars@yandex.ru >
2021-04-28 16:54:45 +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
Konstantin Knizhnik
28f2800275
Merge branch 'main' into rocksdb_pageserver
2021-04-22 14:00:57 +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
Konstantin Knizhnik
9e7c45cb72
Merge with master
2021-04-22 09:45:13 +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
Konstantin Knizhnik
d8fa2ec367
Merge with main branch
2021-04-21 16:10:05 +03:00
Eric Seppanen
92e4f4b3b6
cargo fmt
2021-04-20 17:59:56 -07:00
Heikki Linnakangas
7f777a485e
Fix caching of 'postgres' build in github action.
...
The postgres_ext.h isn't found in vendor/postgres, if the Postgres
was restored from cache instead of building it in vendor/postgres.
To fix, change include path to point into tmp_install/include where the
headers are installed, instead of the vendor/postgres source dir.
2021-04-20 20:27:22 +03:00
Heikki Linnakangas
b451ede199
Use rust bindgen for reading/writing the PostgreSQL control file.
2021-04-20 15:57:05 +03:00