diff options
| author | Bruce Momjian <bruce@momjian.us> | 1999-07-03 00:33:04 +0000 |
|---|---|---|
| committer | Bruce Momjian <bruce@momjian.us> | 1999-07-03 00:33:04 +0000 |
| commit | 97dfff832cbc79a48ac2e053f2628c18027ee0a2 (patch) | |
| tree | cd917280489ad0d84fb9fbb45fe775bbcc71c6e0 /src/backend/catalog/index.c | |
| parent | 954e466c27ad6e6933b99217749e7cb078243fc1 (diff) | |
| download | postgresql-97dfff832cbc79a48ac2e053f2628c18027ee0a2.tar.gz | |
Fix to prevent too large tuple from being created.
Diffstat (limited to 'src/backend/catalog/index.c')
| -rw-r--r-- | src/backend/catalog/index.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/backend/catalog/index.c b/src/backend/catalog/index.c index 82689d1db1..af8d401aa1 100644 --- a/src/backend/catalog/index.c +++ b/src/backend/catalog/index.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.79 1999/06/19 04:54:11 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.80 1999/07/03 00:32:38 momjian Exp $ * * * INTERFACE ROUTINES @@ -20,6 +20,7 @@ #include "postgres.h" #include "access/genam.h" +#include "access/htup.h" #include "access/heapam.h" #include "access/istrat.h" #include "access/xact.h" @@ -56,7 +57,7 @@ /* * macros used in guessing how many tuples are on a page. */ -#define AVG_TUPLE_SIZE 8 +#define AVG_TUPLE_SIZE MinTupleSize #define NTUPLES_PER_PAGE(natts) (BLCKSZ/((natts)*AVG_TUPLE_SIZE)) /* non-export function prototypes */ |
