Re: how to create script of database in postgres..sql(winxp)

From: Michael Trausch <michael(dot)trausch(at)comcast(dot)nope(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: how to create script of database in postgres..sql(winxp)
Date: 2006-04-03 11:55:30
Message-ID: YPqdnShXe9GEkKzZRVn-uA@comcast.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

deepak pal wrote:
> hi
> i am trying to make script file for my database by using pg_dump in
> windows as u say i open psql to postgres then a prompt postgres# open
> then i write \i pg_dump it shows error.what should i do...plz hepl........
>

\i in psql is for including a file to be read and parsed by the database
server. Surely, this is not what you are after.

Since you have not specified the version of PostgreSQL that you're
using, I'm going to take the liberty of assuming that you're using 8.1.

http://www.postgresql.org/docs/8.1/interactive/backup.html

That portion of the manual should address your needs with regards to
using pg_dump and other utilities. It is the Backup/Restore chapter of
the manual.

- Mike

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Markus Reinhold 2006-04-03 12:13:46 Encoding problem in psql (Windows)
Previous Message deepak pal 2006-04-03 11:50:56 how to create script of database in postgres..sql(winxp)