From: Tena Sakai <tsakai@gallo.ucsf.edu>
To: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: trouble restoring database
Date: Tue, 24 Aug 2010 11:22:37 -0700
Message-ID: <C8995BFD.C10B%tsakai@gallo.ucsf.edu> (raw)
Hi Everybody,
I installed a postgres 8.4.4 onto a centos 5.5 machine and attempted to restore
data from a file made by pg_dumpall. It didn’t work, it seems. What I did was to
follow the instruction given in INSTALL file which comes with the source distribution.
The section Getting Started gives a list and I did all but #5 (createdb testdb + psql testdb).
Instead of #5, I ran the command below:
gunzip ..../dumpall20100822.0.gz | /usr/local/pgsql/bin/psql -f – postgres
Which terminated with exit status 0.
But when I look at pg_stat_database I don’t see the database I expected.
Can somebody please tell me why this didn’t work? Also, what must I do to successfully
restore the database?
Thank you in advance.
Regards,
Tena Sakai
tsakai@gallo.ucsf.edu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: tsakai@gallo.ucsf.edu
Subject: Re: trouble restoring database
In-Reply-To: <C8995BFD.C10B%tsakai@gallo.ucsf.edu>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox