diff --git a/reference/pgsql/constants.xml b/reference/pgsql/constants.xml
index 16fafef557..21a12dced8 100644
--- a/reference/pgsql/constants.xml
+++ b/reference/pgsql/constants.xml
@@ -1,5 +1,5 @@
-
+
&reftitle.constants;
&extension.constants;
@@ -390,6 +390,39 @@
+
+
+ PGSQL_ERRORS_TERSE
+ (integer)
+
+
+
+
+
+
+
+
+
+ PGSQL_ERRORS_DEFAULT
+ (integer)
+
+
+
+
+
+
+
+
+
+ PGSQL_ERRORS_VERBOSE
+ (integer)
+
+
+
+
+
+
+
diff --git a/reference/pgsql/functions/pg-set-error-verbosity.xml b/reference/pgsql/functions/pg-set-error-verbosity.xml
new file mode 100644
index 0000000000..e54676e90b
--- /dev/null
+++ b/reference/pgsql/functions/pg-set-error-verbosity.xml
@@ -0,0 +1,97 @@
+
+
+
+
+
+ pg_set_error_verbosity
+
+ Set the error verbosity
+
+
+
+
+ &reftitle.description;
+
+ intpg_set_error_verbosity
+ intverbosity
+
+
+ intpg_set_error_verbosity
+ resourceconnection
+ intverbosity
+
+
+ pg_set_error_verbosity determines the verbosity
+ of messages returned by pg_last_error and
+ pg_result_error. The verbosity
+ can be one of three constants: PGSQL_ERRORS_TERSE,
+ PGSQL_ERRORS_DEFAULT
+ or PGSQL_ERRORS_VERBOSE.
+
+ pg_set_error_verbosity will return the
+ connection previous verbosity.
+
+
+
+ This function requires PostgreSQL 7.4 or higher. Changing the
+ verbosity in this manner will only affect future results, existing
+ result objects will be unchanged.
+
+
+
+
+
+ &reftitle.examples;
+
+
+ pg_set_error_verbosity example
+
+
+]]>
+
+
+
+
+
+
+ &reftitle.seealso;
+
+
+ pg_last_error
+ pg_result_error
+
+
+
+
+
+