Re: Handling memory contexts in aggregate function invoking other built-in aggregate functions

Поиск
Список
Период
Сортировка
От Matt Magoffin
Тема Re: Handling memory contexts in aggregate function invoking other built-in aggregate functions
Дата
Msg-id A49268B1-0ED2-48D8-98C1-6619AC825B95@msqr.us
обсуждение исходный текст
Ответ на Re: Handling memory contexts in aggregate function invoking other built-in aggregate functions  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
On 5/12/2021, at 9:04 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
So that probably means that you weren't careful about allocating your
own state data in the long-lived context (agg_context), and so it
got freed between calls.

It turns out I wasn’t careful about setting isnull on the passed in state argument. After I fixed that [1] everything appears to be running smoothly!

— m@

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

Предыдущее
От: Laurenz Albe
Дата:
Сообщение: Re: libpq: Which functions may hang due to network issues?
Следующее
От: Dilip Kumar
Дата:
Сообщение: Re: Max connections reached without max connections reached