mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	Tweak detail and hint messages to be consistent with project policy
Detail and hint messages should be full sentences and should end with a period, but some of the messages newly-introduced in v15 did not follow that. Author: Justin Pryzby Reviewed-by: Álvaro Herrera Discussion: https://postgr.es/m/20220719120948.GF12702@telsasoft.com Backpatch-through: 15
This commit is contained in:
		@@ -743,7 +743,7 @@ CheckPubRelationColumnList(List *tables, const char *queryString,
 | 
			
		||||
					(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
 | 
			
		||||
					 errmsg("cannot use publication column list for relation \"%s\"",
 | 
			
		||||
							RelationGetRelationName(pri->relation)),
 | 
			
		||||
					 errdetail("column list cannot be used for a partitioned table when %s is false.",
 | 
			
		||||
					 errdetail("Column list cannot be used for a partitioned table when %s is false.",
 | 
			
		||||
							   "publish_via_partition_root")));
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -17790,7 +17790,7 @@ ATExecAttachPartition(List **wqueue, Relation rel, PartitionCmd *cmd,
 | 
			
		||||
				(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
 | 
			
		||||
				 errmsg("trigger \"%s\" prevents table \"%s\" from becoming a partition",
 | 
			
		||||
						trigger_name, RelationGetRelationName(attachrel)),
 | 
			
		||||
				 errdetail("ROW triggers with transition tables are not supported on partitions")));
 | 
			
		||||
				 errdetail("ROW triggers with transition tables are not supported on partitions.")));
 | 
			
		||||
 | 
			
		||||
	/*
 | 
			
		||||
	 * Check that the new partition's bound is valid and does not overlap any
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user