-- Logical backup with pg_dump
-- Single database
-- pg_dump -h localhost -U postgres -d mydb -F c -f mydb_backup.dump
-- All databases
-- pg_dumpall -h localhost -U postgres -f all_databases.sql
use std::io::{self, Read, Write};
pub const HEADER_LEN: usize = 8; // 4-byte length + 4-byte crc
#[derive(Debug)]
pub enum DecodeError {