diff --git a/src/backend/access/gin/ginbulk.c b/src/backend/access/gin/ginbulk.c
index 134a8c7377c4970e1127edd60219815db935a1ac..d6422ea91ebdcd625fdb75ab4edd84367d9f1a3e 100644
--- a/src/backend/access/gin/ginbulk.c
+++ b/src/backend/access/gin/ginbulk.c
@@ -42,7 +42,7 @@ ginCombineData(RBNode *existing, const RBNode *newdata, void *arg)
 			ereport(ERROR,
 					(errcode(ERRCODE_PROGRAM_LIMIT_EXCEEDED),
 					 errmsg("posting list is too long"),
-					 errhint("Reduce maintenance_work_mem")));
+					 errhint("Reduce maintenance_work_mem.")));
 
 		accum->allocatedMemory -= GetMemoryChunkSpace(eo->list);
 		eo->maxcount *= 2;
diff --git a/src/backend/access/transam/xlogfuncs.c b/src/backend/access/transam/xlogfuncs.c
index d69a924a7baa864b045c749cf65d3a1cc252e232..de493fad7a46932126a8c065edb691b5981f8040 100644
--- a/src/backend/access/transam/xlogfuncs.c
+++ b/src/backend/access/transam/xlogfuncs.c
@@ -153,7 +153,7 @@ pg_stop_backup(PG_FUNCTION_ARGS)
 		ereport(ERROR,
 				(errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE),
 				 errmsg("non-exclusive backup in progress"),
-				 errhint("did you mean to use pg_stop_backup('f')?")));
+				 errhint("Did you mean to use pg_stop_backup('f')?")));
 
 	/*
 	 * Exclusive backups were typically started in a different connection,
@@ -227,7 +227,7 @@ pg_stop_backup_v2(PG_FUNCTION_ARGS)
 			ereport(ERROR,
 					(errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE),
 					 errmsg("non-exclusive backup in progress"),
-					 errhint("did you mean to use pg_stop_backup('f')?")));
+					 errhint("Did you mean to use pg_stop_backup('f')?")));
 
 		/*
 		 * Stop the exclusive backup, and since we're in an exclusive backup
@@ -245,7 +245,7 @@ pg_stop_backup_v2(PG_FUNCTION_ARGS)
 			ereport(ERROR,
 					(errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE),
 					 errmsg("non-exclusive backup is not in progress"),
-					 errhint("did you mean to use pg_stop_backup('t')?")));
+					 errhint("Did you mean to use pg_stop_backup('t')?")));
 
 		/*
 		 * Stop the non-exclusive backup. Return a copy of the backup
diff --git a/src/backend/commands/aggregatecmds.c b/src/backend/commands/aggregatecmds.c
index 5c4d576b8660f37f29ba53937f113e8931a0b464..7f45ba940707afaa338879163daea334fb0ccb68 100644
--- a/src/backend/commands/aggregatecmds.c
+++ b/src/backend/commands/aggregatecmds.c
@@ -344,7 +344,7 @@ DefineAggregate(List *name, List *args, bool oldstyle, List *parameters,
 		if (transTypeId != INTERNALOID)
 			ereport(ERROR,
 					(errcode(ERRCODE_INVALID_FUNCTION_DEFINITION),
-					 errmsg("a serialization type must only be specified when the aggregate transition data type is \"%s\"",
+					 errmsg("a serialization type must only be specified when the aggregate transition data type is %s",
 						 format_type_be(INTERNALOID))));
 
 		serialTypeId = typenameTypeId(NULL, serialType);
@@ -366,7 +366,7 @@ DefineAggregate(List *name, List *args, bool oldstyle, List *parameters,
 		if (serialTypeId == INTERNALOID)
 			ereport(ERROR,
 					(errcode(ERRCODE_INVALID_FUNCTION_DEFINITION),
-						errmsg("aggregate serialization type cannot be \"%s\"",
+						errmsg("aggregate serialization data type cannot be %s",
 							format_type_be(serialTypeId))));
 
 		/*
diff --git a/src/backend/commands/operatorcmds.c b/src/backend/commands/operatorcmds.c
index 672f2eb212f5a95d84d9bcf0ab181b14cdb83350..110362412125444cb3801d1d913746b917045152 100644
--- a/src/backend/commands/operatorcmds.c
+++ b/src/backend/commands/operatorcmds.c
@@ -448,7 +448,7 @@ AlterOperator(AlterOperatorStmt *stmt)
 		{
 			ereport(ERROR,
 					(errcode(ERRCODE_SYNTAX_ERROR),
-					 errmsg("operator attribute \"%s\" can not be changed",
+					 errmsg("operator attribute \"%s\" cannot be changed",
 							defel->defname)));
 		}
 		else
diff --git a/src/backend/utils/adt/misc.c b/src/backend/utils/adt/misc.c
index a44fa38173ad730dbea0c86d2ba5234114b35e0d..39f43863d62082baee30af6bf094d23beee80c01 100644
--- a/src/backend/utils/adt/misc.c
+++ b/src/backend/utils/adt/misc.c
@@ -849,13 +849,13 @@ parse_ident(PG_FUNCTION_ARGS)
 						(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
 						 errmsg("string is not a valid identifier: \"%s\"",
 								text_to_cstring(qualname)),
-					 errdetail("No valid identifier before \".\" symbol.")));
+					 errdetail("No valid identifier before \".\".")));
 			else if (after_dot)
 				ereport(ERROR,
 						(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
 						 errmsg("string is not a valid identifier: \"%s\"",
 								text_to_cstring(qualname)),
-					  errdetail("No valid identifier after \".\" symbol.")));
+					  errdetail("No valid identifier after \".\".")));
 			else
 				ereport(ERROR,
 						(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
diff --git a/src/bin/pg_rewind/pg_rewind.c b/src/bin/pg_rewind/pg_rewind.c
index 4004bbfc774c3fef79056f90e4d15721ad006a4d..f472813a64d253bb0e3e44ff5290ef322a8e6997 100644
--- a/src/bin/pg_rewind/pg_rewind.c
+++ b/src/bin/pg_rewind/pg_rewind.c
@@ -459,7 +459,7 @@ getTimelineHistory(ControlFileData *controlFile, int *nentries)
 		else if (controlFile == &ControlFile_target)
 			histfile = slurpFile(datadir_target, path, NULL);
 		else
-			pg_fatal("Invalid control file");
+			pg_fatal("invalid control file");
 
 		history = rewind_parseTimeLineHistory(histfile, tli, nentries);
 		pg_free(histfile);
@@ -685,7 +685,7 @@ syncTargetDirectory(const char *argv0)
 			strlcpy(full_path, progname, sizeof(full_path));
 
 		if (ret == -1)
-			pg_fatal("The program \"initdb\" is needed by %s but was \n"
+			pg_fatal("The program \"initdb\" is needed by %s but was\n"
 					 "not found in the same directory as \"%s\".\n"
 					 "Check your installation.\n", progname, full_path);
 		else
diff --git a/src/test/regress/expected/alter_operator.out b/src/test/regress/expected/alter_operator.out
index 449ed53f8bb517e0401f37356b9d920a201c79ca..9fb688d3aaec05795d62be37ebaf39cd7b4be5ca 100644
--- a/src/test/regress/expected/alter_operator.out
+++ b/src/test/regress/expected/alter_operator.out
@@ -110,17 +110,17 @@ ORDER BY 1;
 -- Test invalid options.
 --
 ALTER OPERATOR === (boolean, boolean) SET (COMMUTATOR = ====);
-ERROR:  operator attribute "commutator" can not be changed
+ERROR:  operator attribute "commutator" cannot be changed
 ALTER OPERATOR === (boolean, boolean) SET (NEGATOR = ====);
-ERROR:  operator attribute "negator" can not be changed
+ERROR:  operator attribute "negator" cannot be changed
 ALTER OPERATOR === (boolean, boolean) SET (RESTRICT = non_existent_func);
 ERROR:  function non_existent_func(internal, oid, internal, integer) does not exist
 ALTER OPERATOR === (boolean, boolean) SET (JOIN = non_existent_func);
 ERROR:  function non_existent_func(internal, oid, internal, smallint, internal) does not exist
 ALTER OPERATOR === (boolean, boolean) SET (COMMUTATOR = !==);
-ERROR:  operator attribute "commutator" can not be changed
+ERROR:  operator attribute "commutator" cannot be changed
 ALTER OPERATOR === (boolean, boolean) SET (NEGATOR = !==);
-ERROR:  operator attribute "negator" can not be changed
+ERROR:  operator attribute "negator" cannot be changed
 --
 -- Test permission check. Must be owner to ALTER OPERATOR.
 --
diff --git a/src/test/regress/expected/create_aggregate.out b/src/test/regress/expected/create_aggregate.out
index 1aba0c626696a6048b13133b7ad9a81ab823bdce..625dae5cdbb66cc76e3f28f3ef60a1483163f004 100644
--- a/src/test/regress/expected/create_aggregate.out
+++ b/src/test/regress/expected/create_aggregate.out
@@ -109,7 +109,7 @@ CREATE AGGREGATE myavg (numeric)
 	sfunc = numeric_avg_accum,
 	serialtype = internal
 );
-ERROR:  aggregate serialization type cannot be "internal"
+ERROR:  aggregate serialization data type cannot be internal
 -- if serialtype is specified we need a serialfunc and deserialfunc
 CREATE AGGREGATE myavg (numeric)
 (
diff --git a/src/test/regress/expected/name.out b/src/test/regress/expected/name.out
index acc5ce6193974a75962012ebdd5f6b052f1edbf3..14fcd3b8eefbb0266f070408bae1bec20b9ab533 100644
--- a/src/test/regress/expected/name.out
+++ b/src/test/regress/expected/name.out
@@ -154,10 +154,10 @@ SELECT parse_ident(' ');
 ERROR:  string is not a valid identifier: " "
 SELECT parse_ident(' .aaa');
 ERROR:  string is not a valid identifier: " .aaa"
-DETAIL:  No valid identifier before "." symbol.
+DETAIL:  No valid identifier before ".".
 SELECT parse_ident(' aaa . ');
 ERROR:  string is not a valid identifier: " aaa . "
-DETAIL:  No valid identifier after "." symbol.
+DETAIL:  No valid identifier after ".".
 SELECT parse_ident('aaa.a%b');
 ERROR:  string is not a valid identifier: "aaa.a%b"
 SELECT parse_ident(E'X\rXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX');
@@ -188,10 +188,10 @@ SELECT parse_ident('10.20');
 ERROR:  string is not a valid identifier: "10.20"
 SELECT parse_ident('.');
 ERROR:  string is not a valid identifier: "."
-DETAIL:  No valid identifier before "." symbol.
+DETAIL:  No valid identifier before ".".
 SELECT parse_ident('.1020');
 ERROR:  string is not a valid identifier: ".1020"
-DETAIL:  No valid identifier before "." symbol.
+DETAIL:  No valid identifier before ".".
 SELECT parse_ident('xxx.1020');
 ERROR:  string is not a valid identifier: "xxx.1020"
-DETAIL:  No valid identifier after "." symbol.
+DETAIL:  No valid identifier after ".".