diff --git a/doc/src/sgml/ref/pgbench.sgml b/doc/src/sgml/ref/pgbench.sgml
index 02ea7e026d..6e0b4a589c 100644
--- a/doc/src/sgml/ref/pgbench.sgml
+++ b/doc/src/sgml/ref/pgbench.sgml
@@ -151,6 +151,18 @@ pgbench optionsd
+
+ dbname
+
+
+ Specifies the name of the database to test in. If this is
+ not specified, the environment variable
+ PGDATABASE is used. If that is not set, the
+ user name specified for the connection is used.
+
+
+
+
@@ -841,6 +853,7 @@ pgbench optionsd
+ PGDATABASEPGHOSTPGPORTPGUSER