Re: pg_dump "what if?"

From: Steve Crawford <scrawford(at)pinpointresearch(dot)com>
To: Peter Lang <peter(dot)lang(at)shaw(dot)ca>, pgsql-general(at)postgresql(dot)org
Subject: Re: pg_dump "what if?"
Date: 2004-03-26 23:12:45
Message-ID: 200403261512.45727.scrawford@pinpointresearch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wednesday 24 March 2004 10:59 am, Peter Lang wrote:
> I'm running pg_dump 7.3.4...<snip>...does anyone
> have any suggestions on another method to confirm whether or not
> the db was successfully dumped?
>
> BTW I'm running under Win2k using Cygwin.

Normally you can check the exit status of the command. In bash you
might use:
pg_dump.....
if [ $? -ne 0 ]
then
# report the error
fi

Don't know if there are any problems getting the exit status in
cygwin, though.

Cheers,
Steve

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Shelby Cain 2004-03-26 23:13:41 Re: pg_dump "what if?"
Previous Message Stephan Szabo 2004-03-26 22:54:26 Re: Problem with inserting into a triggerable table;