Commit Graph
919 Commits
Author SHA1 Message Date
Heikki Linnakangas b4c5cb2773 Clean up error types a little bit.
Don't use std::io::Error for errors that are not I/O related. Prefer
anyhow::Result instead.
2021-04-16 10:42:25 +03:00
Konstantin Knizhnik b67df00bff Fix bug in decoding of truncate record 2021-04-15 17:09:30 +03:00
anastasia 05886b33e5 fix typo 2021-04-15 16:43:03 +03:00
anastasia d7eeaec706 add test for restore from local pgdata 2021-04-15 16:43:03 +03:00
anastasia 1190030872 handle SLRU in restore_datadir 2021-04-15 16:43:03 +03:00
Konstantin Knizhnik 24b925d528 Support truncate WAL record 2021-04-15 15:50:47 +03:00
lubennikovaav 82dc1e82ba Restore pageserver from s3 or local datadir (#9)
* change pageserver --skip-recovery option to --restore-from=[s3|local]
* implement restore from local pgdata 
* add simple test for local restore
2021-04-14 21:14:10 +03:00
anastasia 2e9c730dd1 Cargo fmt pass 2021-04-14 20:12:50 +03:00
Heikki Linnakangas 6266fd102c Avoid short writes if a buffer is full.
write_buf() tries to write as much as it can in one go, and can return
without writing the whole buffer. We need to use write_all() instead.
2021-04-14 18:18:38 +03:00
Konstantin Knizhnik d9bc2109bb Reduce size of shared buffers for wal-redo-postgtes 2021-04-14 14:33:55 +03:00
Eric Seppanen 3c4ebc4030 init_logging: return Result, print error on file create
Instead of panicking if the file create fails, print the filename and
error description to stderr; then propagate the error to our caller.
2021-04-13 14:06:14 -07:00
Konstantin Knizhnik a606336074 Fix bug in WALRecord serializer 2021-04-09 20:31:34 +03:00
Konstantin Knizhnik 1816c4ca0a Merge with master 2021-04-09 15:00:33 +03:00
Konstantin Knizhnik 07fb30747a Store pageserver data in RocksDB 2021-04-08 19:39:30 +03:00
Heikki Linnakangas 0c6471ca0d Print a few more LSNs in the standard format. 2021-04-07 19:05:28 +03:00
Heikki Linnakangas 198fc9ea53 Capture initdb's stdout/stderr, to avoid messing with log formatting.
Especially with --interactive.
2021-04-07 18:51:34 +03:00
Heikki Linnakangas 6b9fc3aff0 Fix minor typos and copy-pastos 2021-04-07 16:39:37 +03:00
Stas Kelvich c0fcbbbe0c Cargo fmt pass over a codebase 2021-04-06 14:42:13 +03:00
Heikki Linnakangas 1367332447 Separate walkeeper and pageserver sources into different directories.
The integration tests, which depend on both walkeeper and pageserver,
are moved into yet another directory, 'integration_tests'.
2021-04-06 13:15:26 +03:00