diff options
Diffstat (limited to 'src/backend/commands/indexcmds.c')
-rw-r--r-- | src/backend/commands/indexcmds.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/backend/commands/indexcmds.c b/src/backend/commands/indexcmds.c index 479db2c3f11..b7c021d943a 100644 --- a/src/backend/commands/indexcmds.c +++ b/src/backend/commands/indexcmds.c @@ -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), |