mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	Improve wording of error message added in commit 714805010.
				
					
				
			Per suggestions from Peter Eisentraut and David Johnston. Back-patch, like the previous commit. Discussion: https://postgr.es/m/E1dv9jI-0006oT-Fn@gemulon.postgresql.org
This commit is contained in:
		@@ -396,7 +396,7 @@ do_analyze_rel(Relation onerel, VacuumStmt *vacstmt,
 | 
				
			|||||||
			if (bms_is_member(i, unique_cols))
 | 
								if (bms_is_member(i, unique_cols))
 | 
				
			||||||
				ereport(ERROR,
 | 
									ereport(ERROR,
 | 
				
			||||||
						(errcode(ERRCODE_DUPLICATE_COLUMN),
 | 
											(errcode(ERRCODE_DUPLICATE_COLUMN),
 | 
				
			||||||
						 errmsg("column \"%s\" of relation \"%s\" is specified twice",
 | 
											 errmsg("column \"%s\" of relation \"%s\" appears more than once",
 | 
				
			||||||
								col, RelationGetRelationName(onerel))));
 | 
													col, RelationGetRelationName(onerel))));
 | 
				
			||||||
			unique_cols = bms_add_member(unique_cols, i);
 | 
								unique_cols = bms_add_member(unique_cols, i);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -81,8 +81,8 @@ SQL function "wrap_do_analyze" statement 1
 | 
				
			|||||||
VACUUM FULL vactst;
 | 
					VACUUM FULL vactst;
 | 
				
			||||||
-- check behavior with duplicate column mentions
 | 
					-- check behavior with duplicate column mentions
 | 
				
			||||||
VACUUM ANALYZE vaccluster(i,i);
 | 
					VACUUM ANALYZE vaccluster(i,i);
 | 
				
			||||||
ERROR:  column "i" of relation "vaccluster" is specified twice
 | 
					ERROR:  column "i" of relation "vaccluster" appears more than once
 | 
				
			||||||
ANALYZE vaccluster(i,i);
 | 
					ANALYZE vaccluster(i,i);
 | 
				
			||||||
ERROR:  column "i" of relation "vaccluster" is specified twice
 | 
					ERROR:  column "i" of relation "vaccluster" appears more than once
 | 
				
			||||||
DROP TABLE vaccluster;
 | 
					DROP TABLE vaccluster;
 | 
				
			||||||
DROP TABLE vactst;
 | 
					DROP TABLE vactst;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user