From 45616f5bbbb87745e0e82b00e77562d6502aa042 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Thu, 10 Jun 2004 17:56:03 +0000 Subject: Clean up generation of default names for constraints, indexes, and serial sequences, as per recent discussion. All these names are now of the form table_column_type, with digits added if needed to make them unique. Default constraint names are chosen to be unique across their whole schema, not just within the parent object, so as to be more SQL-spec-compatible and make the information schema views more useful. --- src/include/commands/defrem.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/include/commands/defrem.h') diff --git a/src/include/commands/defrem.h b/src/include/commands/defrem.h index 892aee34ae..ba7415a582 100644 --- a/src/include/commands/defrem.h +++ b/src/include/commands/defrem.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/commands/defrem.h,v 1.56 2004/05/14 16:11:25 tgl Exp $ + * $PostgreSQL: pgsql/src/include/commands/defrem.h,v 1.57 2004/06/10 17:55:59 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -35,6 +35,10 @@ extern void RemoveIndex(RangeVar *relation, DropBehavior behavior); extern void ReindexIndex(RangeVar *indexRelation, bool force); extern void ReindexTable(RangeVar *relation, bool force); extern void ReindexDatabase(const char *databaseName, bool force, bool all); +extern char *makeObjectName(const char *name1, const char *name2, + const char *label); +extern char *ChooseRelationName(const char *name1, const char *name2, + const char *label, Oid namespace); /* commands/functioncmds.c */ extern void CreateFunction(CreateFunctionStmt *stmt); -- cgit v1.2.1