| From: | "Tomi NA" <hefest(at)gmail(dot)com> |
|---|---|
| To: | pgsql-general <pgsql-general(at)postgresql(dot)org> |
| Subject: | Fwd: how to create script of database in postgres..sql(winxp) |
| Date: | 2006-04-03 12:14:26 |
| Message-ID: | d487eb8e0604030514q5e6a361dn948e3a2ce9ea7e39@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
---------- Forwarded message ----------
From: deepak pal <deepak(dot)05pal(at)gmail(dot)com>
Date: Apr 3, 2006 2:05 PM
Subject: Re: [GENERAL] how to create script of database in
postgres..sql(winxp)
To: Tomi NA <hefest(at)gmail(dot)com>
it do not recognize that \i and pg_dump i use \i pg_dump mydbname>newdb
command
From the examples in man pg_dump:
To dump a database:
$ pg_dump mydb > db.out
To reload this database:
$ psql -d database -f db.out
To dump a database called mydb to a tar file:
$ pg_dump -Ft mydb > db.tar
To reload this dump into an existing database called newdb:
$ pg_restore -d newdb db.tar
Have you tried to dump the database this way? Does it work?
t.n.a.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Robert Treat | 2006-04-03 12:24:42 | Re: Creating serial ID on Windows. |
| Previous Message | A. Kretschmer | 2006-04-03 12:13:52 | Re: how to create script of database in postgres..sql(winxp) |