diff --git a/doc/src/sgml/ref/alter_table.sgml b/doc/src/sgml/ref/alter_table.sgml
index ab5e6bf3d42..3e18b7dba51 100644
--- a/doc/src/sgml/ref/alter_table.sgml
+++ b/doc/src/sgml/ref/alter_table.sgml
@@ -814,16 +814,51 @@ WITH ( MODULUS numeric_literal, REM
This form changes the information which is written to the write-ahead log
to identify rows which are updated or deleted. This option has no effect
- except when logical replication is in use. DEFAULT
- (the default for non-system tables) records the
- old values of the columns of the primary key, if any. USING INDEX
- records the old values of the columns covered by the named index, which
- must be unique, not partial, not deferrable, and include only columns marked
- NOT NULL. FULL records the old values of all columns
- in the row. NOTHING records no information about the old row.
- (This is the default for system tables.)
+ except when logical replication is in use.
In all cases, no old values are logged unless at least one of the columns
that would be logged differs between the old and new versions of the row.
+
+
+ DEFAULT
+
+
+ Records the old values of the columns of the primary key, if any.
+ This is the default for non-system tables.
+
+
+
+
+
+ USING INDEX index_name
+
+
+ Records the old values of the columns covered by the named index,
+ that must be unique, not partial, not deferrable, and include only
+ columns marked NOT NULL. If this index is
+ dropped, the behavior is the same as NOTHING.
+
+
+
+
+
+ FULL
+
+
+ Records the old values of all columns in the row.
+
+
+
+
+
+ NOTHING
+
+
+ Records no information about the old row. This is the default for
+ system tables.
+
+
+
+
diff --git a/src/include/catalog/pg_class.h b/src/include/catalog/pg_class.h
index dc6c415c586..cb24bab6a2e 100644
--- a/src/include/catalog/pg_class.h
+++ b/src/include/catalog/pg_class.h
@@ -118,7 +118,7 @@ typedef FormData_pg_class *Form_pg_class;
/*
* an explicitly chosen candidate key's columns are used as replica identity.
* Note this will still be set if the index has been dropped; in that case it
- * has the same meaning as 'd'.
+ * has the same meaning as 'n'.
*/
#define REPLICA_IDENTITY_INDEX 'i'