This trivial patches fixes the error message returned by CREATE INDEX
authorBruce Momjian <bruce@momjian.us>
Wed, 28 Aug 2002 20:46:47 +0000 (20:46 +0000)
committerBruce Momjian <bruce@momjian.us>
Wed, 28 Aug 2002 20:46:47 +0000 (20:46 +0000)
commitfbb1966cf3125f07220a546bf424df73327fe47f
tree651540c0cb7d6862380fe76c96322cf62d5696cd
parent81dfa2ce4328c44201a70a9dc3517bd356698069
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
src/backend/catalog/index.c