Re: stack usage in toast_insert_or_update()

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: stack usage in toast_insert_or_update()
Дата
Msg-id 1711.1170168676@sss.pgh.pa.us
обсуждение исходный текст
Ответ на stack usage in toast_insert_or_update()  ("Pavan Deolasee" <pavan.deolasee@gmail.com>)
Ответы Re: stack usage in toast_insert_or_update()  ("Pavan Deolasee" <pavan.deolasee@gmail.com>)
Список pgsql-hackers
"Pavan Deolasee" <pavan.deolasee@gmail.com> writes:
> The stack usage for toast_insert_or_update() may run into several KBs since
> the MaxHeapAttributeNumber is set to a very large value of 1600. The usage
> could anywhere between 28K to 48K depending on alignment and whether its a
> 32-bit or a 64-bit machine.

So?  The routine is not re-entrant so I don't see that the stack space
is a big problem.  It's coded that way to avoid palloc/pfree cycles...
        regards, tom lane


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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: pgsql: Fix for plpython functions; return true/false for boolean,
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: [BUGS] Missing error message on missing ssl-key-files