Search Postgresql Archives

Re: Equivalent function not found for ERROR_PROCEDURE(),ERROR_LINE(),ERROR_MESSAGE().

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

 



On 3/27/2017 3:59 AM, MAJUMDER, SAYAN wrote:

I am new to postgresql and presently we are migrating from sql server to postgresql.

We have certain functions in sql server such as ERROR_PROCEDURE(),ERROR_LINE(),ERROR_MESSAGE(). I am unable to find any equivalent

functions in postgresql. Kindly help me. Thanks in advance. Its urgent.


I'm not familiar with those functions in Microsoft SQL Server, however see the various result functions in https://www.postgresql.org/docs/current/static/libpq-exec.html  such as PQresultStatus, PQresultErrorMessage, PQresultErrorField, etc, to get the error results of a query executed via the standard libpq API. 

If you are using a different API to access postgres, then you'd need to look into that API's error return functions.


-- 
john r pierce, recycling bits in santa cruz

[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