Is it possible to restore a Postgres database when only the table files are accessed in
$PGDATA/base/? The system catalogs are empty.
sudo executed a
rm -Rf under
/var/lib. The random files were removed, but not the files in the database that interest me. Postgres did not start, even after manually restoring multiple files / directories. So I created a new
$PGDATA and copied the files from the database, waiting for Postgres to read them automatically. Apparently, Postgres relies heavily on their system catalogs to maintain links between what is on the disk and what the user sees.