Hi all,
From what I’m reading on www.postgresql.org, the -C option for pg_restore is supposed to create the database before
restoringinto it, but here’s my command line:
pg_restore -p 5432 -C -d restored_db recovery.dmp
The dmp file was created with pg_dump using
pg_dump -p 5432 -F c orig_db > recovery.dmp.
Pg_restore errors saying the database does not exist. Yes, I know that port 5432 is the default, but not all of our
databasesare. So, do I have any options wrong with either utility? Or why is this happening? I’m just trying to
documenta recovery procedure and testing my documentation.
—
Jay
Sent from my iPhone