Re: pg_dump problem - Mailing list pgsql-general

From Kyle
Subject Re: pg_dump problem
Date
Msg-id 14720.25197.319560.153318@ip146.usw5.rb1.bel.nwlink.com
Whole thread Raw
In response to Re: pg_dump problem  (Andrew Sullivan <sullivana@bpl.on.ca>)
Responses Re: Re: pg_dump problem
List pgsql-general
Andrew Sullivan wrote:
[pg_dump problem]
> If you just type the username and password after that, you'll get the
> output you want.  Problem is that you're redirecting all output to a
> file, and that includes the username and password prompts.
>
> In 7.x versions, this appears to be fixed using the '-f' switch:
>
>     mymachine:~$ pg_dump -u [database] -f [somefile]

what if you want to pipe the output to your favorite compression
utility?  I like doing a weekly:
 pg_dumpall | bzip2 - > dump.bz2

-Kyle


pgsql-general by date:

Previous
From: Lamar Owen
Date:
Subject: Re:
Next
From: Jim Mercer
Date:
Subject: Re: