pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Timme <mit@e-mit.de>
To: pgsql-admin@postgresql.org
Cc: pmiranda@vm.com.br
Subject: Re: pg_dump & Win 9X/NT
Date: Thu, 13 Sep 2001 12:31:35 +0200
Message-ID: <895435430.20010913123135@e-mit.de> (raw)
In-Reply-To: <OFD7A6F00B.7ECBF2BA-ON03256ABE.0075E020@vm.com.br>
References: <OFD7A6F00B.7ECBF2BA-ON03256ABE.0075E020@vm.com.br>

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@e-mit.de




view thread (2+ messages)

Message-ID: <895435430.20010913123135@e-mit.de>
Permalink:  ../895435430.20010913123135@e-mit.de/
Also on:    postgresql.org/message-id/895435430.20010913123135@e-mit.de

 · 

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-admin@postgresql.org
  Cc: mit@e-mit.de, pmiranda@vm.com.br
  Subject: Re: pg_dump & Win 9X/NT
  In-Reply-To: <895435430.20010913123135@e-mit.de>
  References: <OFD7A6F00B.7ECBF2BA-ON03256ABE.0075E020@vm.com.br> <895435430.20010913123135@e-mit.de>

* 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