1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-27 23:21:58 +03:00

Remove 16 char limit on system table/index names. Rename system indexes.

This commit is contained in:
Bruce Momjian
1997-11-17 16:59:36 +00:00
parent 80c1e82232
commit d0471244e6
8 changed files with 46 additions and 58 deletions

View File

@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/view.c,v 1.12 1997/09/18 20:20:27 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/view.c,v 1.13 1997/11/17 16:58:59 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -117,28 +117,16 @@ DefineVirtualRelation(char *relname, List *tlist)
* Given a view name, returns the name for the 'on retrieve to "view"'
* rule.
* This routine is called when defining/removing a view.
*
* NOTE: it quarantees that the name is at most 15 chars long
*
* XXX it also means viewName cannot be 16 chars long! - ay 11/94
*------------------------------------------------------------------
*/
char *
MakeRetrieveViewRuleName(char *viewName)
{
/*
char buf[100];
MemSet(buf, 0, sizeof(buf));
sprintf(buf, "_RET%.*s", NAMEDATALEN, viewName->data);
buf[15] = '\0';
namestrcpy(rule_name, buf);
*/
char *buf;
buf = palloc(strlen(viewName) + 5);
sprintf(buf, "_RET%s", viewName);
return buf;
}