Search Postgresql Archives

Re: pg_dump warning format?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mar 15, 2007, at 9:08 PM, Tom Lane wrote:

Erik Jones <erik@xxxxxxxxxx> 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.

Thanks.  I guess I just wasn't sure as to whether or not anything other than "bad" messages were written to stderr.  Given the intent of stderr you wouldn't think so, but I've seen cases where it was so.

erik jones <erik@xxxxxxxxxx>
sofware developer
615-296-0838
emma(r)




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux