Re: pg_dump warning format? - Mailing list pgsql-general

From Tom Lane
Subject Re: pg_dump warning format?
Date
Msg-id 29612.1174010920@sss.pgh.pa.us
Whole thread Raw
In response to pg_dump warning format?  (Erik Jones <erik@myemma.com>)
Responses Re: pg_dump warning format?  (Erik Jones <erik@myemma.com>)
List pgsql-general
Erik Jones <erik@myemma.com> writes:
> Basically I need a way for my script to know if it needs to
> abort because there were issues with the dump before it follows
> through with the drop db...

Well, just checking the exit status from pg_dump ought to give you at
least a go/no-go indicator.  If you want to be significantly more
paranoid, you could try the theory that *any* output to stderr is
indicative of a problem.

            regards, tom lane

pgsql-general by date:

Previous
From: "Michael Su"
Date:
Subject: Re: About the new day-time saving rule
Next
From: "Michael Su"
Date:
Subject: About the new day-time saving rule