Search Postgresql Archives

Re: Any postgres API available to get errorcode for PQerrorMessage

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

 



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?

[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