| От | Tom Lane |
|---|---|
| Тема | Re: stack usage in toast_insert_or_update() |
| Дата | |
| Msg-id | 19395.1170349728@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: stack usage in toast_insert_or_update() (Jan Wieck <JanWieck@Yahoo.com>) |
| Список | pgsql-hackers |
Jan Wieck <JanWieck@Yahoo.com> writes:
> On 1/31/2007 12:41 PM, Tom Lane wrote:
>> We can't change TOAST_MAX_CHUNK_SIZE without forcing an initdb, but I
>> think that it would be safe to remove the MAXALIGN'ing of the tuple
>> size in the tests in heapam.c, that is
> Can't we maxalign the page header in the calculations?
Actually, the page header size *is* maxaligned. The problem is that
TOAST_TUPLE_THRESHOLD isn't.
We could make it so, but that would change TOAST_MAX_CHUNK_SIZE thus
forcing an initdb. I think simply removing the MAXALIGN operations
in the code is a better answer, as it eliminates some rather pointless
overhead. There's no particular reason why the threshold needs to be
maxaligned ...
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера