Re: pgsql: Add a note about another issue that needs to be considered before

Поиск
Список
Период
Сортировка
От Gregory Stark
Тема Re: pgsql: Add a note about another issue that needs to be considered before
Дата
Msg-id 87myts67ow.fsf@oxford.xeocode.com
обсуждение исходный текст
Ответ на pgsql: Add a note about another issue that needs to be considered before  (tgl@postgresql.org (Tom Lane))
Ответы Re: pgsql: Add a note about another issue that needs to be considered before
Список pgsql-committers
"Tom Lane" <tgl@postgresql.org> writes:

> Log Message:
> -----------
> Add a note about another issue that needs to be considered before
> changing the TOAST size thresholds.

FWIW I found another issue with this variable when I was experimenting with
small block sizes. If you set the target <= the tuple header the toaster
breaks. This is because it's doing unsigned arithmetic (Size is unsigned). I
think the right solution is just to change it to use plain int32 arithmetic
everywhere.

I don't think this affects the default thresholds because even with the
maximum number of columns (1600) the null bitmap can't be as large as 2kB (the
most it can get to is 200 bytes).

--
  Gregory Stark
  EnterpriseDB          http://www.enterprisedb.com
  Ask me about EnterpriseDB's PostGIS support!

В списке pgsql-committers по дате отправления:

Предыдущее
От: momjian@postgresql.org (Bruce Momjian)
Дата:
Сообщение: pgsql: Document txid functions.
Следующее
От: mkz@pgfoundry.org (User Mkz)
Дата:
Сообщение: plproxy - plproxy: explicit type casting for result fields