Re: a plpgsql bug

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: a plpgsql bug
Дата
Msg-id CAKFQuwZQnBBDPYq=kj++eh0X_K5eE_+K9yLWBn5vO7K1ysYcNg@mail.gmail.com
обсуждение исходный текст
Ответ на a plpgsql bug  ("daidewei@highgo.com" <daidewei@highgo.com>)
Ответы Re: a plpgsql bug  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
On Mon, Sep 18, 2023 at 11:46 PM daidewei@highgo.com <daidewei@highgo.com> wrote:
    I found a problem in plpgsql. When there is a large loop in plpgsql, it is found that the change of search_path will cause memory exhaustion and thus disconnect the connection.

It is impossible to prevent queries from exhausting memory so the fact that this one does isn't an indication of a bug on its own.  I'm having trouble imagining a reasonable use case for this pattern of changing search_path frequently in a loop within a single execution of a function.  That said, I'm not in a position to judge how easy or difficult an improvement in this area may be.

David J.

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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: [16+] subscription can end up in inconsistent state
Следующее
От: Tom Lane
Дата:
Сообщение: Re: a plpgsql bug