Skip to content

Commit fbb1966

Browse files
committed
This trivial patches fixes the error message returned by CREATE INDEX
when it finds an existing relation with the same name as the to-be-created index. Old error message: nconway=# create table foo (a int); CREATE TABLE nconway=# create index foo on foo (a); ERROR: index named "foo" already exists I replaced 'index' with 'relation' in the error message. Neil Conway
1 parent 81dfa2c commit fbb1966

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/catalog/index.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.189 2002/08/11 21:17:34 tgl Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.190 2002/08/28 20:46:47 momjian Exp $
1212
*
1313
*
1414
* INTERFACE ROUTINES
@@ -561,7 +561,7 @@ index_create(Oid heapRelationId,
561561
elog(ERROR, "Shared indexes cannot be created after initdb");
562562

563563
if (get_relname_relid(indexRelationName, namespaceId))
564-
elog(ERROR, "index named \"%s\" already exists",
564+
elog(ERROR, "relation named \"%s\" already exists",
565565
indexRelationName);
566566

567567
/*

0 commit comments

Comments
 (0)