Re: Crash on SRF execution

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Crash on SRF execution
Дата
Msg-id 25884.1426434584@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Crash on SRF execution  (Itai <itaid@outlook.com>)
Ответы Re: Crash on SRF execution  (Itai Dor-On <itaid@outlook.com>)
Список pgsql-hackers
Itai <itaid@outlook.com> writes:
> I'm attempting to program a simple SRF function but it constantly crashes (details and code below).
> Any idea why?

Looks like you're pallocing some stuff in the calling context (ie, a
short-lived context) during the first execution and expecting it to
still be there in later executions.  You'd need to allocate those
data structures in the multi_call_memory_ctx instead.
        regards, tom lane



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

Предыдущее
От: Itai
Дата:
Сообщение: Crash on SRF execution
Следующее
От: Andres Freund
Дата:
Сообщение: Re: Crash on SRF execution