mirror of
https://github.com/postgres/postgres.git
synced 2025-06-22 02:52:08 +03:00
Pgindent run before 9.1 beta2.
This commit is contained in:
@ -185,14 +185,15 @@ DefineIndex(RangeVar *heapRelation,
|
||||
rel->rd_rel->relkind != RELKIND_UNCATALOGED)
|
||||
{
|
||||
if (rel->rd_rel->relkind == RELKIND_FOREIGN_TABLE)
|
||||
|
||||
/*
|
||||
* Custom error message for FOREIGN TABLE since the term is
|
||||
* close to a regular table and can confuse the user.
|
||||
* Custom error message for FOREIGN TABLE since the term is close
|
||||
* to a regular table and can confuse the user.
|
||||
*/
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_WRONG_OBJECT_TYPE),
|
||||
errmsg("cannot create index on foreign table \"%s\"",
|
||||
heapRelation->relname)));
|
||||
heapRelation->relname)));
|
||||
else
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_WRONG_OBJECT_TYPE),
|
||||
|
Reference in New Issue
Block a user