diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml
index 0f7d409e601..210c7c0b024 100644
--- a/doc/src/sgml/func.sgml
+++ b/doc/src/sgml/func.sgml
@@ -26578,7 +26578,7 @@ SELECT collation for ('foo' COLLATE "de_DE");
record that it has consumed, which must always be greater than or
equal to summarized_lsn; if the WAL summarizer is
not running, it will be equal to summarized_lsn.
- summarized_pid is the PID of the WAL summarizer
+ summarizer_pid is the PID of the WAL summarizer
process, if it is running, and otherwise NULL.
diff --git a/src/bin/pg_walsummary/t/002_blocks.pl b/src/bin/pg_walsummary/t/002_blocks.pl
index d473471bc7e..d609d2c5473 100644
--- a/src/bin/pg_walsummary/t/002_blocks.pl
+++ b/src/bin/pg_walsummary/t/002_blocks.pl
@@ -63,7 +63,7 @@ SELECT EXISTS (
)
EOM
-# Figure out the exact details for the new sumamry file.
+# Figure out the exact details for the new summary file.
my $details = $node1->safe_psql('postgres', < '$summarized_lsn'