diff options
author | Bruce Momjian <bruce@momjian.us> | 1997-08-18 20:53:48 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 1997-08-18 20:53:48 +0000 |
commit | b99c63cfc029cc0552e98f652d1734aec1124a5b (patch) | |
tree | 6e18eedc0b8ebfc0d84479ed26d0ea9b12d8125d /src/backend/bootstrap/bootstrap.c | |
parent | 022903f22e54cbc78b4acc1ef54f73d19a051630 (diff) | |
download | postgresql-b99c63cfc029cc0552e98f652d1734aec1124a5b.tar.gz postgresql-b99c63cfc029cc0552e98f652d1734aec1124a5b.zip |
Now that names are null terminated, no need to do all that NAMEDATALEN stuff.
Diffstat (limited to 'src/backend/bootstrap/bootstrap.c')
-rw-r--r-- | src/backend/bootstrap/bootstrap.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/backend/bootstrap/bootstrap.c b/src/backend/bootstrap/bootstrap.c index 4d8cfbd7406..7d769cddff7 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.19 1997/08/12 22:52:04 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/bootstrap/bootstrap.c,v 1.20 1997/08/18 20:51:44 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -510,8 +510,8 @@ boot_openrel(char *relname) if (DebugMode) { AttributeTupleForm at = attrtypes[i]; - printf("create attribute %d name %.*s len %d num %d type %d\n", - i, NAMEDATALEN, at->attname.data, at->attlen, at->attnum, + printf("create attribute %d name %s len %d num %d type %d\n", + i, at->attname.data, at->attlen, at->attnum, at->atttypid ); fflush(stdout); @@ -572,16 +572,14 @@ DefineAttr(char *name, char *type, int attnum) if (Typ != (struct typmap **)NULL) { attrtypes[attnum]->atttypid = Ap->am_oid; namestrcpy(&attrtypes[attnum]->attname, name); - if (!Quiet) printf("<%.*s %s> ", NAMEDATALEN, - attrtypes[attnum]->attname.data, type); + if (!Quiet) printf("<%s %s> ", attrtypes[attnum]->attname.data, type); attrtypes[attnum]->attnum = 1 + attnum; /* fillatt */ attlen = attrtypes[attnum]->attlen = Ap->am_typ.typlen; attrtypes[attnum]->attbyval = Ap->am_typ.typbyval; } else { attrtypes[attnum]->atttypid = Procid[t].oid; namestrcpy(&attrtypes[attnum]->attname,name); - if (!Quiet) printf("<%.*s %s> ", NAMEDATALEN, - attrtypes[attnum]->attname.data, type); + if (!Quiet) printf("<%s %s> ", attrtypes[attnum]->attname.data, type); attrtypes[attnum]->attnum = 1 + attnum; /* fillatt */ attlen = attrtypes[attnum]->attlen = Procid[t].len; attrtypes[attnum]->attbyval = (attlen==1) || (attlen==2)||(attlen==4); @@ -775,7 +773,7 @@ gettype(char *type) } } if (DebugMode) - printf("bootstrap.c: External Type: %.*s\n", NAMEDATALEN, type); + printf("bootstrap.c: External Type: %s\n", type); rdesc = heap_openr(TypeRelationName); sdesc = heap_beginscan(rdesc, 0, NowTimeQual, 0, (ScanKey)NULL); i = 0; |