fn pg_len(what: &str, len: usize) -> Result<i32, Error>