Re: how to use pg_dump and then restored onto development server

From: Douglas McNaught <doug(at)mcnaught(dot)org>
To: "Zlatko Matic" <zlatko(dot)matic1(at)sb(dot)t-com(dot)hr>
Cc: "ketan shah" <ketan_dba(at)yahoo(dot)com>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: how to use pg_dump and then restored onto development server
Date: 2005-06-29 15:29:05
Message-ID: m264vx2ncu.fsf@Douglas-McNaughts-Powerbook.local
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Zlatko Matic" <zlatko(dot)matic1(at)sb(dot)t-com(dot)hr> writes:

> Concerning this question about pg_dump, I'm also confused and don't
> understand when to use pg_restore and when to use psql ?
> For example, how to restore in these two cases:
> A) pg_dump -f D:\MYDB_BCP -c -x -h localhost -U postgres MYDB
> B) pg_dump -f D:\MYDB_BCP -Fc -c -x -h localhost -U postgres MYDB

If you use any of the binary dump formats (-Fc or -Ft), use
pg_restore. For text dumps (the default) use psql.

-Doug

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ciprian Popovici 2005-06-29 16:00:37 Recovering a broken database
Previous Message Tom Lane 2005-06-29 15:21:41 Re: PostgreSQL's vacuumdb fails to allocate memory for