from typing import Tuple
from typing import Optional


def restore_postgres_db(
    backup_file: str, postgres_db: str
) -> Tuple[Optional[str], bytes]:
    """Restore postgres db from a file."""
    try:
        # restore postgres with pg_restore and terminal
        pass

        # check if command succeeded

        return None, bytes()
    except Exception as e:
        return f"Issue with the db restore : {e}", bytes()