agora inbox for pgsql-sql@postgresql.org
help / color / mirror / Atom feedFrom: Rob Sargent <robjsargent@gmail.com>
To: pgsql-general@postgresql.org
Subject: Re: Any postgres API available to get errorcode for PQerrorMessage
Date: Wed, 15 Oct 2014 10:37:32 -0600
Message-ID: <543EA2CC.6010402@gmail.com> (raw)
In-Reply-To: <F9567754259D974D88F5F5337C9D219620BD0C43@xmb-aln-x11.cisco.com>
References: <F9567754259D974D88F5F5337C9D219620BD0C43@xmb-aln-x11.cisco.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-general>
On 10/15/2014 02:17 AM, Roopeshakumar Narayansa Shalgar (rshalgar) wrote:
>
> HI,
>
> PQerrorMessage pirints the error message like (no space
> available,etc). Does postgres provide
>
> any API which gives the error code listed in the below appendix;
>
> http://www.postgresql.org/docs/9.1/static/errcodes-appendix.html
>
> I need the exact error code so that I can shutdown my application
> whenever I face the "no space available" problem.
>
> --
>
> Thanks and Regards,
>
> Rupesh
>
Isn't this best done by monitoring tools such as nagios and done much
before you actually run out of space?
view thread (8+ messages) latest in thread
Message-ID: <543EA2CC.6010402@gmail.com>
Permalink: ../543EA2CC.6010402@gmail.com/
Also on: postgresql.org/message-id/543EA2CC.6010402@gmail.com
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: robjsargent@gmail.com, pgsql-general@postgresql.org
Subject: Re: Any postgres API available to get errorcode for PQerrorMessage
In-Reply-To: <543EA2CC.6010402@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox