mirror of
https://github.com/postgres/postgres.git
synced 2025-05-11 05:41:32 +03:00
Better error message if table exists.
This commit is contained in:
parent
5a722414a1
commit
53916cab6a
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/catalog/heap.c,v 1.61 1998/08/26 17:12:08 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/backend/catalog/heap.c,v 1.62 1998/08/29 04:19:08 momjian Exp $
|
||||||
*
|
*
|
||||||
* INTERFACE ROUTINES
|
* INTERFACE ROUTINES
|
||||||
* heap_create() - Create an uncataloged heap relation
|
* heap_create() - Create an uncataloged heap relation
|
||||||
@ -775,7 +775,7 @@ heap_create_with_catalog(char *relname,
|
|||||||
if (RelationAlreadyExists(pg_class_desc, relname))
|
if (RelationAlreadyExists(pg_class_desc, relname))
|
||||||
{
|
{
|
||||||
heap_close(pg_class_desc);
|
heap_close(pg_class_desc);
|
||||||
elog(ERROR, "amcreate: %s relation already exists", relname);
|
elog(ERROR, "%s relation already exists", relname);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ----------------
|
/* ----------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user