1
0
mirror of https://github.com/postgres/postgres.git synced 2025-09-02 04:21:28 +03:00

Fix to prevent too large tuple from being created.

This commit is contained in:
Bruce Momjian
1999-07-03 00:33:04 +00:00
parent 954e466c27
commit 97dfff832c
11 changed files with 46 additions and 40 deletions

View File

@@ -6,7 +6,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/copy.c,v 1.80 1999/06/12 20:41:25 tgl Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/copy.c,v 1.81 1999/07/03 00:32:39 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -1073,7 +1073,7 @@ GetIndexRelations(Oid main_relation_oid,
}
}
#define EXT_ATTLEN 5*BLCKSZ
#define EXT_ATTLEN (5 * BLCKSZ)
/*
returns 1 is c is in s

View File

@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.109 1999/06/11 09:35:08 vadim Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.110 1999/07/03 00:32:40 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -624,7 +624,7 @@ vc_scanheap(VRelStats *vacrelstats, Relation onerel,
empty_end_pages;
Size free_size,
usable_free_size;
Size min_tlen = MAXTUPLEN;
Size min_tlen = MaxTupleSize;
Size max_tlen = 0;
int32 i;
struct rusage ru0,