Re: using a dumped database file - Mailing list pgsql-novice

From Riki Kurniawan
Subject Re: using a dumped database file
Date
Msg-id 20030617112252.24559.qmail@web40513.mail.yahoo.com
Whole thread Raw
In response to Re: using a dumped database file  (Reshat Sabiq <sabiq@purdue.edu>)
List pgsql-novice
Hi,

You can also use 'psql dbname < mydb.txt', the empty database should be created first using
'createdb dbname'.

--
Regards,
Riki

--- Reshat Sabiq <sabiq@purdue.edu> wrote:
>
> Don Patou wrote:
>
> >I've just pg_dump my database in a mydb.txt file. How can I use this file to
> >recreate all my tables on another computer (linux box)?
> >
> >thanx in advance
> >
> >
> >---------------------------(end of broadcast)---------------------------
> >TIP 3: if posting/reading through Usenet, please send an appropriate
> >      subscribe-nomail command to majordomo@postgresql.org so that your
> >      message can get through to the mailing list cleanly
> >
> >
> >
> \i mydb.txt
> There is also pg_restore.
>
> HTH.
>
> --
> Sincerely,
> Reshat.
>
> -------------------------------------------------------------------------------------------
> If you see my certificate with this message, you should be able to send me encrypted e-mail.
> Please consult your e-mail client for details if you would like to do that.
>
>
>

> ATTACHMENT part 2 application/x-pkcs7-signature name=smime.p7s



__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

pgsql-novice by date:

Previous
From: Joe Conway
Date:
Subject: Re: use cursor in a function
Next
From: "Brent Howard"
Date:
Subject: Issues starting postgres on Solaris