Problem with large tuples.

Поиск
Список
Период
Сортировка
От Patrik Kudo
Тема Problem with large tuples.
Дата
Msg-id 388875D0.21942465@partitur.se
обсуждение исходный текст
Ответы Re: [SQL] Problem with large tuples.  (Dirk Lutzebaeck <lutzeb@aeccom.com>)
Список 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 по дате отправления:

Предыдущее
От: Laszlo, Tibor
Дата:
Сообщение: ...
Следующее
От: Patrik Kudo
Дата:
Сообщение: Duplicate tuples with unique index