Problem with large tuples. - Mailing list pgsql-sql

From Patrik Kudo
Subject Problem with large tuples.
Date
Msg-id 388875D0.21942465@partitur.se
Whole thread Raw
Responses Re: [SQL] Problem with large tuples.  (Dirk Lutzebaeck <lutzeb@aeccom.com>)
List pgsql-sql
I've noticed that some of my tables with large text tuples have
problem when these exceed some certain size. I know about the
8k tuplesize limit, but it seems the problem appears earlier
than that. This is what I've been able to recreate:

CREATE TABLE sizetest (id int, txt text);
INSERT INTO sizetest (id, txt) VALUES (1, '...'); // ... = string of
4000 chars
vacuum analyze; // <-- works nicely
INSERT INTO sizetest (id, txt) VALUES (2, '...'); // ... = string of
4100 chars
vacuum analyze;
ERROR:  Tuple is too big: size 8152, max size 8140

How come the insert works while the vacuum fails?

Setup: Postgres 6.5.2, FreeBSD 3.3

/Patrik Kudo


pgsql-sql by date:

Previous
From: Laszlo, Tibor
Date:
Subject: ...
Next
From: Patrik Kudo
Date:
Subject: Duplicate tuples with unique index