Re: [PATCH] plpython function causes server panic

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [PATCH] plpython function causes server panic
Дата
Msg-id 3588382.1711641697@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [PATCH] plpython function causes server panic  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: [PATCH] plpython function causes server panic  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> On Thu, Mar 28, 2024 at 11:50 AM Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Yeah, I was thinking about that too.  The normal case is that you
>> don't hold any releasable resources except locks when arriving at
>> CommitSubTransaction --- if you do, it's a bug and we're going to
>> print leak warnings.  Seems like maybe it'd be worth trying to
>> have a fast path for that case.

> Well, there's the abort case, too, which I think is almost equally important.

True, but in the abort case there probably *are* resources to be
cleaned up, so I'm not seeing that the fast-path idea helps.
Although maybe the idea of batching multiple cleanups would?

            regards, tom lane



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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: [PATCH] plpython function causes server panic
Следующее
От: Robert Haas
Дата:
Сообщение: Re: [PATCH] plpython function causes server panic