Re: Working between Windows and Unix

From: Raymond O'Donnell <rod(at)iol(dot)ie>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Working between Windows and Unix
Date: 2007-04-02 23:22:12
Message-ID: 46119024.9070102@iol.ie
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 02/04/2007 19:51, Erick Papadakis wrote:

> How can I find the path for pg_dump? You mean on Windows or on Linux?
> I am unable to make the "dump" or SQL backup from my Windows machine
> to begin with!

On my laptop (WinXP) it's in c:\program files\postgresql\8.2\bin. I've
added this to my system PATH so that I don't have to type it every time....

> postgres=# pg_dump MYDB > d:\mydb.sql

It's a command-line program: you don't run it from within psql, but
directly at the shell prompt. For example, on my machine:

C:\Documents and Settings\rod>psql dbname > dumpfile.sql

You might have to specify the database user as which to connect, using
the -U option - see the docs for all options.

> The manual on pgsql website about pg_dump gives very little info about
> where to execute the command.

The examples in the docs all begin with the shell prompt '$'.

Ray.

---------------------------------------------------------------
Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland
rod(at)iol(dot)ie
---------------------------------------------------------------

In response to

Browse pgsql-general by date

  From Date Subject
Next Message jezemine 2007-04-02 23:50:26 documentation generator for pgsql
Previous Message greg 2007-04-02 22:38:58 Re: SQLConnect failure