pg_dump -U [superuser] -Fc [dbname] > db.dump
This syntax allows importing to a database with the name of your choice.
createdb -T template0 [dbname]
pg_restore --clean --if-exists --no-acl --no-owner --verbose -d [dbname] -U [superuser] db.dump
pg_dump -U [superuser] -Fc [dbname] > db.dump
This syntax allows importing to a database with the name of your choice.
createdb -T template0 [dbname]
pg_restore --clean --if-exists --no-acl --no-owner --verbose -d [dbname] -U [superuser] db.dump
hi,
I am facing the same issue
pg_restore: [custom archiver] could not read from input file: end of file
and regenerating did not fix the issue. Any ideas?