diff --git a/doc/src/sgml/file-fdw.sgml b/doc/src/sgml/file-fdw.sgml
index 19be824b039..2413089ffeb 100644
--- a/doc/src/sgml/file-fdw.sgml
+++ b/doc/src/sgml/file-fdw.sgml
@@ -187,7 +187,7 @@
Changing table-level options requires being a superuser or having the privileges
of the default role pg_read_server_files (to use a filename) or
- the default role pg_execute_server_programs (to use a program),
+ the default role pg_execute_server_program (to use a program),
for security reasons: only certain users should be able to control which file is
read or which program is run. In principle regular users could be allowed to
change the other options, but that's not supported at present.
diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml
index 90d67f1acfd..4930ec17f62 100644
--- a/doc/src/sgml/func.sgml
+++ b/doc/src/sgml/func.sgml
@@ -16399,7 +16399,7 @@ SET search_path TO schema , sc
optional parameter. The return value is NULL when the
log format requested is not a configured
. The
- pg_current_logfiles reflects the contents of the
+ pg_current_logfile reflects the contents of the
current_logfiles file.
diff --git a/doc/src/sgml/libpq.sgml b/doc/src/sgml/libpq.sgml
index d2e5b08541e..c1d1b6b2db3 100644
--- a/doc/src/sgml/libpq.sgml
+++ b/doc/src/sgml/libpq.sgml
@@ -6205,7 +6205,7 @@ char *PQencryptPasswordConn(PGconn *conn, const char *passwd, const char *user,
char *PQencryptPassword(const char *passwd, const char *user);
PQencryptPassword is an older, deprecated version of
- PQencryptPasswodConn. The difference is that
+ PQencryptPasswordConn. The difference is that
PQencryptPassword does not
require a connection object, and md5 is always used as the
encryption algorithm.
diff --git a/doc/src/sgml/ref/pg_dump.sgml b/doc/src/sgml/ref/pg_dump.sgml
index 2015410a421..9e0bb93f08a 100644
--- a/doc/src/sgml/ref/pg_dump.sgml
+++ b/doc/src/sgml/ref/pg_dump.sgml
@@ -1290,7 +1290,7 @@ CREATE DATABASE foo WITH TEMPLATE template0;
When dumping logical replication subscriptions,
pg_dump will generate CREATE
- SUBSCRIPTION commands that use the NOCONNECT
+ SUBSCRIPTION commands that use the connect = false
option, so that restoring the subscription does not make remote connections
for creating a replication slot or for initial table copy. That way, the
dump can be restored without requiring network access to the remote
diff --git a/src/backend/postmaster/pgstat.c b/src/backend/postmaster/pgstat.c
index d50351547fa..13da412c59c 100644
--- a/src/backend/postmaster/pgstat.c
+++ b/src/backend/postmaster/pgstat.c
@@ -3799,7 +3799,7 @@ pgstat_get_wait_io(WaitEventIO w)
event_name = "LockFileCreateSync";
break;
case WAIT_EVENT_LOCK_FILE_CREATE_WRITE:
- event_name = "LockFileCreateWRITE";
+ event_name = "LockFileCreateWrite";
break;
case WAIT_EVENT_LOCK_FILE_RECHECKDATADIR_READ:
event_name = "LockFileReCheckDataDirRead";