Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfbb1966

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 theto-be-created index.Old error message:nconway=# create table foo (a int);CREATE TABLEnconway=# create index foo on foo (a);ERROR: index named "foo" already existsI replaced 'index' with 'relation' in the error message.Neil Conway
1 parent81dfa2c commitfbb1966

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)

[8]ページ先頭

©2009-2025 Movatter.jp