Re: pg_dump & Win 9X/NT

From: Michael Timme <mit(at)e-mit(dot)de>
To: pgsql-admin(at)postgresql(dot)org
Cc: pmiranda(at)vm(dot)com(dot)br
Subject: Re: pg_dump & Win 9X/NT
Date: 2001-09-13 10:31:35
Message-ID: 895435430.20010913123135@e-mit.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi,

pvcb> I tried to use pg_dump + pg_restore, but I don't know the correct usage of
pvcb> them under Win 9X/NT. I'd appreciate any tips in that matter.

create a dump file with pg_dump like
pg_dump -h sourcehost dbname > outputfile.dump

then connect to the other machine and create the new database
psql -h desthost -d template1
create database new_dbname;

exit and connect now with the generated datafile

psql -h desthost -d new_dbname < outputfile.dump

I tried this way and it works.

regards Michael Timme

--
Michael Timme
mailto:mit(at)e-mit(dot)de

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Leandro Rodrigo Saad Cruz 2001-09-13 14:03:57 Bad date external representation Was :[problems using pg_dump and datestyle format]
Previous Message Bruce Momjian 2001-09-13 00:47:39 Re: Another WAL question (sort of)