Обсуждение: Re: Problem performing a restore of a data schema in Wi

Поиск
Список
Период
Сортировка

Re: Problem performing a restore of a data schema in Wi

От
Shaun Clements
Дата:

Hi John

Thanks for the suggestion. It worked perfectly.

Thanks

Kind Regards,
Shaun Clements

-----Original Message-----
From: John DeSoi [mailto:desoi@pgedit.com]
Sent: 07 February 2005 04:21 PM
To: Shaun Clements
Cc: 'PgSql General'
Subject: Re: [GENERAL] Problem performing a restore of a data schema in
Windows

On Feb 7, 2005, at 8:22 AM, Shaun Clements wrote:

> psql -U username -d db1 > filename.dmp

Try

psql.exe -U username -d db1 -f filename.dmp

If it does not work, paste the output from the terminal so we can see
what error you have. Are you sure filename.dmp is a plain text dump? If
not, you need to use pg_restore instead of psql.

John DeSoi, Ph.D.
http://pgedit.com/
Power Tools for PostgreSQL
Subject to www.relyant.co.za/edisclaim.htm

Re: Problem performing a restore of a data schema in Wi

От
"Berend Tober"
Дата:
> -----Original Message-----
> From: John DeSoi [mailto:desoi@pgedit.com]
> Sent: 07 February 2005 04:21 PM
> To: Shaun Clements
> Cc: 'PgSql General'
> Subject: Re: [GENERAL] Problem performing a restore of a data schema in
> Windows
>
>
>
> On Feb 7, 2005, at 8:22 AM, Shaun Clements wrote:
>
>> psql -U username -d db1 > filename.dm
>

You're going the wrong way. Try either


   psql -U username -d db1 < filename.dm

or

   cat filename.dm | psql -U username -d db1

or

   psql -f filename.dm -U username -d db1