Re: pg_dump problem - Mailing list pgsql-general

From Philip Warner
Subject Re: pg_dump problem
Date
Msg-id 3.0.5.32.20000728021128.02352800@mail.rhyme.com.au
Whole thread Raw
In response to pg_dump problem  ("Oakley " <oakerz@eudoramail.com>)
List pgsql-general
At 09:53 27/07/00 -0500, Oakley wrote:
>Using postgres 7.0.2, I am trying to dump my database for archiving the
current setup and information that is in it. (surprise there huh?) and when
I try:
>
>/usr/local/pgsql/bin/pg_dump -u dbname > /some_directory/dbname.dump
>
>it wont work! It doesnt prompt me for username and passwd or anything, and
still creates the dbname.dump file in the specified directory, but it has
"0" size and I never return to prompt unless I hit Ctrl-C. If I leave off
the redirect and have it print to STDOUT, no problems...
>

I think that pg_dump is sending the prompts to stdout, but I am not sure.
You can get it to work by typing:

    /usr/local/pgsql/bin/pg_dump -u dbname -f /some_directory/dbname.dump


----------------------------------------------------------------
Philip Warner                    |     __---_____
Albatross Consulting Pty. Ltd.   |----/       -  \
(A.C.N. 008 659 498)             |          /(@)   ______---_
Tel: (+61) 0500 83 82 81         |                 _________  \
Fax: (+61) 0500 83 82 82         |                 ___________ |
Http://www.rhyme.com.au          |                /           \|
                                 |    --________--
PGP key available upon request,  |  /
and from pgp5.ai.mit.edu:11371   |/

pgsql-general by date:

Previous
From: Andrew Sullivan
Date:
Subject: Re: pg_dump problem
Next
From: "Mehta, Ashok"
Date:
Subject: ...