mirror of
				https://github.com/postgres/postgres.git
				synced 2025-10-29 22:49:41 +03:00 
			
		
		
		
	Fix some errhint and errdetail strings missing a period
As per the error message style guide of the documentation, those should be full sentences. Author: Daniel Gustafsson Reviewed-by: Michael Paquier, Álvaro Herrera Discussion: https://1E8D49B4-16BC-4420-B4ED-58501D9E076B@yesql.se
This commit is contained in:
		| @@ -11382,7 +11382,7 @@ ATExecAddInherit(Relation child_rel, RangeVar *parent, LOCKMODE lockmode) | ||||
| 				(errcode(ERRCODE_FEATURE_NOT_SUPPORTED), | ||||
| 				 errmsg("trigger \"%s\" prevents table \"%s\" from becoming an inheritance child", | ||||
| 						trigger_name, RelationGetRelationName(child_rel)), | ||||
| 				 errdetail("ROW triggers with transition tables are not supported in inheritance hierarchies"))); | ||||
| 				 errdetail("ROW triggers with transition tables are not supported in inheritance hierarchies."))); | ||||
|  | ||||
| 	/* OK to create inheritance */ | ||||
| 	CreateInheritance(child_rel, parent_rel); | ||||
|   | ||||
| @@ -4993,7 +4993,7 @@ parse_jsonb_index_flags(Jsonb *jb) | ||||
| 			ereport(ERROR, | ||||
| 					(errcode(ERRCODE_INVALID_PARAMETER_VALUE), | ||||
| 					 errmsg("flag array element is not a string"), | ||||
| 					 errhint("Possible values are: \"string\", \"numeric\", \"boolean\", \"key\", and \"all\""))); | ||||
| 					 errhint("Possible values are: \"string\", \"numeric\", \"boolean\", \"key\", and \"all\"."))); | ||||
|  | ||||
| 		if (v.val.string.len == 3 && | ||||
| 			pg_strncasecmp(v.val.string.val, "all", 3) == 0) | ||||
| @@ -5015,7 +5015,7 @@ parse_jsonb_index_flags(Jsonb *jb) | ||||
| 					(errcode(ERRCODE_INVALID_PARAMETER_VALUE), | ||||
| 					 errmsg("wrong flag in flag array: \"%s\"", | ||||
| 							pnstrdup(v.val.string.val, v.val.string.len)), | ||||
| 					 errhint("Possible values are: \"string\", \"numeric\", \"boolean\", \"key\", and \"all\""))); | ||||
| 					 errhint("Possible values are: \"string\", \"numeric\", \"boolean\", \"key\", and \"all\"."))); | ||||
| 	} | ||||
|  | ||||
| 	/* expect end of array now */ | ||||
|   | ||||
| @@ -10929,7 +10929,7 @@ check_effective_io_concurrency(int *newval, void **extra, GucSource source) | ||||
| #else | ||||
| 	if (*newval != 0) | ||||
| 	{ | ||||
| 		GUC_check_errdetail("effective_io_concurrency must be set to 0 on platforms that lack posix_fadvise()"); | ||||
| 		GUC_check_errdetail("effective_io_concurrency must be set to 0 on platforms that lack posix_fadvise()."); | ||||
| 		return false; | ||||
| 	} | ||||
| 	return true; | ||||
| @@ -11041,7 +11041,7 @@ check_recovery_target_timeline(char **newval, void **extra, GucSource source) | ||||
| 		strtoul(*newval, NULL, 0); | ||||
| 		if (errno == EINVAL || errno == ERANGE) | ||||
| 		{ | ||||
| 			GUC_check_errdetail("recovery_target_timeline is not a valid number"); | ||||
| 			GUC_check_errdetail("recovery_target_timeline is not a valid number."); | ||||
| 			return false; | ||||
| 		} | ||||
| 		rttg = RECOVERY_TARGET_TIMELINE_NUMERIC; | ||||
| @@ -11219,7 +11219,7 @@ check_recovery_target_name(char **newval, void **extra, GucSource source) | ||||
| 	/* Use the value of newval directly */ | ||||
| 	if (strlen(*newval) >= MAXFNAMELEN) | ||||
| 	{ | ||||
| 		GUC_check_errdetail("recovery_target_name is too long (maximum %d characters)", | ||||
| 		GUC_check_errdetail("recovery_target_name is too long (maximum %d characters).", | ||||
| 							MAXFNAMELEN - 1); | ||||
| 		return false; | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user