mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	Message improvements
This commit is contained in:
		@@ -979,7 +979,7 @@ parseCheckAggregates(ParseState *pstate, Query *qry)
 | 
			
		||||
		if (!gsets)
 | 
			
		||||
			ereport(ERROR,
 | 
			
		||||
					(errcode(ERRCODE_STATEMENT_TOO_COMPLEX),
 | 
			
		||||
					 errmsg("too many grouping sets present (max 4096)"),
 | 
			
		||||
					 errmsg("too many grouping sets present (maximum 4096)"),
 | 
			
		||||
					 parser_errposition(pstate,
 | 
			
		||||
										qry->groupClause
 | 
			
		||||
									? exprLocation((Node *) qry->groupClause)
 | 
			
		||||
 
 | 
			
		||||
@@ -2856,7 +2856,7 @@ transformOnConflictArbiter(ParseState *pstate,
 | 
			
		||||
		ereport(ERROR,
 | 
			
		||||
				(errcode(ERRCODE_SYNTAX_ERROR),
 | 
			
		||||
				 errmsg("ON CONFLICT DO UPDATE requires inference specification or constraint name"),
 | 
			
		||||
				 errhint("For example, ON CONFLICT (<column>)."),
 | 
			
		||||
				 errhint("For example, ON CONFLICT (column_name)."),
 | 
			
		||||
				 parser_errposition(pstate,
 | 
			
		||||
								  exprLocation((Node *) onConflictClause))));
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -3080,7 +3080,7 @@ errorMissingColumn(ParseState *pstate,
 | 
			
		||||
				 errmsg("column %s.%s does not exist", relname, colname) :
 | 
			
		||||
				 errmsg("column \"%s\" does not exist", colname),
 | 
			
		||||
				 state->rfirst ? closestfirst ?
 | 
			
		||||
		  errhint("Perhaps you meant to reference the column \"%s\".\"%s\".",
 | 
			
		||||
		  errhint("Perhaps you meant to reference the column \"%s.%s\".",
 | 
			
		||||
				  state->rfirst->eref->aliasname, closestfirst) :
 | 
			
		||||
				 errhint("There is a column named \"%s\" in table \"%s\", but it cannot be referenced from this part of the query.",
 | 
			
		||||
						 colname, state->rfirst->eref->aliasname) : 0,
 | 
			
		||||
@@ -3099,7 +3099,7 @@ errorMissingColumn(ParseState *pstate,
 | 
			
		||||
				 relname ?
 | 
			
		||||
				 errmsg("column %s.%s does not exist", relname, colname) :
 | 
			
		||||
				 errmsg("column \"%s\" does not exist", colname),
 | 
			
		||||
				 errhint("Perhaps you meant to reference the column \"%s\".\"%s\" or the column \"%s\".\"%s\".",
 | 
			
		||||
				 errhint("Perhaps you meant to reference the column \"%s.%s\" or the column \"%s.%s\".",
 | 
			
		||||
						 state->rfirst->eref->aliasname, closestfirst,
 | 
			
		||||
						 state->rsecond->eref->aliasname, closestsecond),
 | 
			
		||||
				 parser_errposition(pstate, location)));
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user