From: Adrian Klaver <aklaver@comcast.net>
To: pgsql-general@postgresql.org
Cc: Bob Pawley <rjpawley@shaw.ca>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Subject: Re: pg_restore
Date: Sun, 28 Oct 2007 15:58:55 -0700
Message-ID: <200710281558.56072.aklaver@comcast.net> (raw)
In-Reply-To: <001901c819b3$822878f0$6401a8c0@owner>
References: <004401c81990$ef57e8c0$6401a8c0@owner>
<200710281515.39475.aklaver@comcast.net>
<001901c819b3$822878f0$6401a8c0@owner>
On Sunday 28 October 2007 3:40 pm, Bob Pawley wrote:
> This is the dump command
>
> pg_dump -h localhost -d Aurel -U postgres
>
> Could you suggest a dump command that will match the restore command -
>
> pg_restore -h localhost -d PDW -U postgres aurel.sql
>
>
> Thanks
>
> Bob
>
It depends on what you want to do. But to use pg_restore you will need to use
one of either -Fc or Ft after the pg_dump command. My concern is that you are
connecting to a different database name in the dump and restore commands.
This may be what you want, but then again it may not.I would suggest reading
the information at the URL below before proceeding further.
http://www.postgresql.org/docs/8.2/interactive/app-pgdump.html
--
Adrian Klaver
aklaver@comcast.net
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: aklaver@comcast.net, rjpawley@shaw.ca, tgl@sss.pgh.pa.us
Subject: Re: pg_restore
In-Reply-To: <200710281558.56072.aklaver@comcast.net>
References: <004401c81990$ef57e8c0$6401a8c0@owner> <200710281515.39475.aklaver@comcast.net> <001901c819b3$822878f0$6401a8c0@owner> <200710281558.56072.aklaver@comcast.net>
* 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