Problem with large tuples.

From: Patrik Kudo <kudo(at)partitur(dot)se>
To: "pgsql-sql(at)postgreSQL(dot)org" <pgsql-sql(at)postgreSQL(dot)org>
Subject: Problem with large tuples.
Date: 2000-01-21 15:05:52
Message-ID: 388875D0.21942465@partitur.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Patrik Kudo 2000-01-21 15:09:33 Duplicate tuples with unique index
Previous Message Laszlo 2000-01-21 13:46:34