diff --git a/doc/src/sgml/datatype.sgml b/doc/src/sgml/datatype.sgml
index 9ef7b4a0251ef9a342eb6232ebc29a7f1c82527e..387ba53ef091cd8c0e32b14c8350fba3045f92c0 100644
--- a/doc/src/sgml/datatype.sgml
+++ b/doc/src/sgml/datatype.sgml
@@ -4572,7 +4572,7 @@ SELECT * FROM pg_attribute
 
    <para>
     The <type>pg_lsn</type> data type can be used to store LSN (Log Sequence
-    Number) data which is a pointer to a location in the XLOG. This type is a
+    Number) data which is a pointer to a location in the WAL. This type is a
     representation of <type>XLogRecPtr</type> and an internal system type of
     <productname>PostgreSQL</productname>.
    </para>
diff --git a/doc/src/sgml/pgstandby.sgml b/doc/src/sgml/pgstandby.sgml
index 80c6f6006206686de1a17fd18f1bf1399b23450f..bf4edea9f18266cc4704a07db1cf50feda89e7bb 100644
--- a/doc/src/sgml/pgstandby.sgml
+++ b/doc/src/sgml/pgstandby.sgml
@@ -22,7 +22,7 @@
    <arg rep="repeat"><replaceable>option</replaceable></arg>
    <arg choice="plain"><replaceable>archivelocation</replaceable></arg>
    <arg choice="plain"><replaceable>nextwalfile</replaceable></arg>
-   <arg choice="plain"><replaceable>xlogfilepath</replaceable></arg>
+   <arg choice="plain"><replaceable>walfilepath</replaceable></arg>
    <arg choice="opt"><replaceable>restartwalfile</replaceable></arg>
   </cmdsynopsis>
  </refsynopsisdiv>
diff --git a/doc/src/sgml/protocol.sgml b/doc/src/sgml/protocol.sgml
index 05a0d6e8461b49365fc9f45bd684fe7990c1aba1..589b881ef2c9bf9273db2758de0e6ed53ab5ba8e 100644
--- a/doc/src/sgml/protocol.sgml
+++ b/doc/src/sgml/protocol.sgml
@@ -1371,7 +1371,7 @@ The commands accepted in walsender mode are:
       </term>
       <listitem>
       <para>
-       Current xlog flush location. Useful to get a known location in the
+       Current WAL flush location. Useful to get a known location in the
        transaction log where streaming can start.
       </para>
       </listitem>
diff --git a/doc/src/sgml/storage.sgml b/doc/src/sgml/storage.sgml
index 5c52824dfc4fee933c4e5621276ac645c6a69afa..127b759c14f03edd0825a7ba07e89014dfa46384 100644
--- a/doc/src/sgml/storage.sgml
+++ b/doc/src/sgml/storage.sgml
@@ -810,7 +810,7 @@ data. Empty in ordinary tables.</entry>
    <entry>pd_lsn</entry>
    <entry>PageXLogRecPtr</entry>
    <entry>8 bytes</entry>
-   <entry>LSN: next byte after last byte of xlog record for last change
+   <entry>LSN: next byte after last byte of WAL record for last change
    to this page</entry>
   </row>
   <row>