diff --git a/functions/pgsql.xml b/functions/pgsql.xml index f986803295..55714f7299 100644 --- a/functions/pgsql.xml +++ b/functions/pgsql.xml @@ -1,5 +1,5 @@ - + PostgreSQL functions PostgreSQL @@ -707,11 +707,18 @@ $dbconn4 = pg_connect ($conn_string); resourceconnection - pg_last_error returns the last error - message for given connection. Error messages - may be overwritten by calls to other PostgreSQL functions, so make - sure you call pg_last_error before any other - PostgreSQL functions. + pg_last_error returns the last error message + for given connection. + + + Error messages may be overwritten by internal PostgreSQL(libpq) + function calls. It may not return appropriate error message, if + multiple errors are occured inside a PostgreSQL module function. + + + Use pg_result_error, + pg_result_status and + pg_connection_status for better error handling. @@ -719,7 +726,7 @@ $dbconn4 = pg_connect ($conn_string); - See also pg_result_error_message. + See also pg_result_error.