Re: Does pg_dump have result codes to indicate success or failure

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: frank church <pgsql(at)adontendev(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Does pg_dump have result codes to indicate success or failure
Date: 2006-01-23 04:55:41
Message-ID: 20060123045541.GA73697@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Jan 23, 2006 at 02:23:15AM +0000, frank church wrote:
> I want to use pg_dump in a php program. Does pg_dump have specific error codes?
>
> Does use the normal shell result codes to indicate success or failure ?

A quick look through the pg_dump source code finds exit codes of 0
(success) and 1 (failure).

--
Michael Fuhr

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Martijn van Oosterhout 2006-01-23 08:26:27 Re: Numbers
Previous Message frank church 2006-01-23 02:23:15 Does pg_dump have result codes to indicate success or failure