From d0471244e62ee530f6eb2a840add4344cc7327d1 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Mon, 17 Nov 1997 16:59:36 +0000 Subject: Remove 16 char limit on system table/index names. Rename system indexes. --- src/backend/bootstrap/bootstrap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/backend/bootstrap/bootstrap.c') diff --git a/src/backend/bootstrap/bootstrap.c b/src/backend/bootstrap/bootstrap.c index 7ad0c5c0192..29409a733d9 100644 --- a/src/backend/bootstrap/bootstrap.c +++ b/src/backend/bootstrap/bootstrap.c @@ -7,7 +7,7 @@ * Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/bootstrap/bootstrap.c,v 1.26 1997/09/18 20:20:04 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/bootstrap/bootstrap.c,v 1.27 1997/11/17 16:58:55 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -480,8 +480,8 @@ boot_openrel(char *relname) HeapScanDesc sdesc; HeapTuple tup; - if (strlen(relname) > 15) - relname[15] = '\000'; + if (strlen(relname) >= NAMEDATALEN-1) + relname[NAMEDATALEN-1] = '\0'; if (Typ == (struct typmap **) NULL) { -- cgit v1.2.3