pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <aklaver@comcast.net>
To: pgsql-general@postgresql.org
Cc: Bob Pawley <rjpawley@shaw.ca>
Subject: Re: pg_restore
Date: Sun, 28 Oct 2007 11:45:58 -0700
Message-ID: <200710281145.58716.aklaver@comcast.net> (raw)
In-Reply-To: <004401c81990$ef57e8c0$6401a8c0@owner>
References: <004401c81990$ef57e8c0$6401a8c0@owner>

On Sunday 28 October 2007 11:32 am, Bob Pawley wrote:
> Please help.
>
> I am attempting to restore a database into PostgreSQL version 8.2 running
> on Win XP Professional.
>
> From the 'bin' folder, I am using the command line-
> pg_restore psql -h localhost -d PDW -U postgres -f aurel.sql

Try  pg_restore psql -h localhost -d PDW -U postgres  aurel.sql 
No -f switch

>
> I get an error -
>
> pg_restore: cannot specify both -d and -f output.
>
> If the error message is correct how does pg_restore know what to put where?

The -d switch tells pg_restore to the named database. The -f switch tells it 
to restore to named file. It won't do both.

>
> I used the same command to successfully install the same pg_dump file into
> PostgreSQL 8.1 running on the same computer.

Maybe 8.1 ignored the error.

>
> Any thoughts would be much appreciated.
>


-- 
Adrian Klaver
aklaver@comcast.net



view thread (67+ messages)  latest in thread

Message-ID: <200710281145.58716.aklaver@comcast.net>
Permalink:  ../200710281145.58716.aklaver@comcast.net/
Also on:    postgresql.org/message-id/200710281145.58716.aklaver@comcast.net

 · 

reply

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
  Subject: Re: pg_restore
  In-Reply-To: <200710281145.58716.aklaver@comcast.net>
  References: <004401c81990$ef57e8c0$6401a8c0@owner> <200710281145.58716.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