diff --git a/contrib/pg_upgrade/option.c b/contrib/pg_upgrade/option.c
index 85d33d2736fb02db49c101044eeec1ef5536a69c..0a105efec713f8b0b9e5ffc34f6d1125a7720a31 100644
--- a/contrib/pg_upgrade/option.c
+++ b/contrib/pg_upgrade/option.c
@@ -259,7 +259,7 @@ Options:\n\
   -g, --debug                   enable debugging\n\
   -G, --debugfile=FILENAME      output debugging activity to file\n\
   -k, --link                    link instead of copying files to new cluster\n\
-  -l, --logfile=FILENAME        log session activity to file\n\
+  -l, --logfile=FILENAME        log internal activity to file\n\
   -o, --old-options=OPTIONS     old cluster options to pass to the server\n\
   -O, --new-options=OPTIONS     new cluster options to pass to the server\n\
   -p, --old-port=OLDPORT        old cluster port number (default %d)\n\
diff --git a/doc/src/sgml/pgupgrade.sgml b/doc/src/sgml/pgupgrade.sgml
index ac3f99bd7da79542c7b19160afa12ed56b204d13..1373069243c9333d25dc65e46acd25056bf484f3 100644
--- a/doc/src/sgml/pgupgrade.sgml
+++ b/doc/src/sgml/pgupgrade.sgml
@@ -111,7 +111,7 @@
      <varlistentry>
       <term><option>-l</option> <replaceable>log_filename</></term>
       <term><option>--logfile=</option><replaceable>log_filename</></term>
-      <listitem><para>log session activity to file</para></listitem>
+      <listitem><para>log internal activity to file</para></listitem>
      </varlistentry>
 
      <varlistentry>