Re: pg_dump warning format?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Erik Jones <erik(at)myemma(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: pg_dump warning format?
Date: 2007-03-16 02:08:40
Message-ID: 29612.1174010920@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Erik Jones <erik(at)myemma(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2007-03-16 02:20:47 Re: Role & User - Inheritance?
Previous Message Jasbinder Singh Bali 2007-03-16 02:06:06 Re: exception handling in plperlu