session_pgsql_get_error Returns number of errors and last error message &reftitle.description; arraysession_pgsql_get_error boolwith_error_message&false; Get the number of errors and optional the error messages. &reftitle.parameters; with_error_message Set to &true; the literal error message for each error is also returned. &reftitle.returnvalues; The number of errors are returned as array. &reftitle.seealso; session_pgsql_add_error