diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2000-08-07 20:16:13 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2000-08-07 20:16:13 +0000 |
commit | 022417740094620880488dd9b04fbb96ff11694b (patch) | |
tree | fa7a1b0853207355cb1f180d126b939c899825e2 /src/backend/utils/adt/varbit.c | |
parent | d2165a4a5d7786ecd43becf8e040c5764d35ca16 (diff) | |
download | postgresql-022417740094620880488dd9b04fbb96ff11694b.tar.gz postgresql-022417740094620880488dd9b04fbb96ff11694b.zip |
TOAST mop-up work: update comments for tuple-size-related symbols such
as MaxHeapAttributeNumber. Increase MaxAttrSize to something more
reasonable (given what it's used for, namely checking char(n) declarations,
I didn't make it the full 1G that it could theoretically be --- 10Mb
seemed a more reasonable number). Improve calculation of MaxTupleSize.
Diffstat (limited to 'src/backend/utils/adt/varbit.c')
-rw-r--r-- | src/backend/utils/adt/varbit.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/utils/adt/varbit.c b/src/backend/utils/adt/varbit.c index b238bce5312..cba4085bd2a 100644 --- a/src/backend/utils/adt/varbit.c +++ b/src/backend/utils/adt/varbit.c @@ -4,7 +4,7 @@ * Functions for the built-in type bit() and varying bit(). * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/adt/varbit.c,v 1.6 2000/07/28 02:13:31 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/adt/varbit.c,v 1.7 2000/08/07 20:15:37 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -107,7 +107,7 @@ zpbit_in(char *s, int dummy, int32 atttypmod) if (len > MaxAttrSize) elog(ERROR, "zpbit_in: length of bit() must be less than %ld", - (MaxAttrSize - VARHDRSZ - VARBITHDRSZ) * BITSPERBYTE); + (long) ((MaxAttrSize - VARHDRSZ - VARBITHDRSZ) * BITSPERBYTE)); result = (bits8 *) palloc(len); /* set to 0 so that *r is always initialised and strin is zero-padded */ @@ -338,7 +338,7 @@ varbit_in(char *s, int dummy, int32 atttypmod) if (len > MaxAttrSize) elog(ERROR, "varbit_in: length of bit() must be less than %ld", - (MaxAttrSize - VARHDRSZ - VARBITHDRSZ) * BITSPERBYTE); + (long) ((MaxAttrSize - VARHDRSZ - VARBITHDRSZ) * BITSPERBYTE)); result = (bits8 *) palloc(len); /* set to 0 so that *r is always initialised and strin is zero-padded */ |