mirror of
https://github.com/postgres/postgres.git
synced 2025-06-16 06:01:02 +03:00
Cleanup for NAMEDATALEN use.
This commit is contained in:
@ -14,7 +14,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/commands/cluster.c,v 1.10 1997/01/10 20:17:05 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/commands/cluster.c,v 1.11 1997/08/03 02:34:45 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -83,10 +83,10 @@ cluster(char oldrelname[], char oldindexname[])
|
||||
Relation OldHeap, OldIndex;
|
||||
Relation NewHeap;
|
||||
|
||||
char NewIndexName[NAMEDATALEN+1];
|
||||
char NewHeapName[NAMEDATALEN+1];
|
||||
char saveoldrelname[NAMEDATALEN+1];
|
||||
char saveoldindexname[NAMEDATALEN+1];
|
||||
char NewIndexName[NAMEDATALEN];
|
||||
char NewHeapName[NAMEDATALEN];
|
||||
char saveoldrelname[NAMEDATALEN];
|
||||
char saveoldindexname[NAMEDATALEN];
|
||||
|
||||
|
||||
/* Save the old names because they will get lost when the old relations
|
||||
@ -258,7 +258,7 @@ copy_index(Oid OIDOldIndex, Oid OIDNewHeap)
|
||||
Old_pg_index_relation_Form =
|
||||
(Form_pg_class)GETSTRUCT(Old_pg_index_relation_Tuple);
|
||||
|
||||
NewIndexName = palloc(NAMEDATALEN+1); /* XXX */
|
||||
NewIndexName = palloc(NAMEDATALEN); /* XXX */
|
||||
sprintf(NewIndexName, "temp_%x", OIDOldIndex); /* Set the name. */
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user