Re: BUG #15923: Prepared statements take way too much memory.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #15923: Prepared statements take way too much memory.
Дата
Msg-id 3422.1564007025@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #15923: Prepared statements take way too much memory.  (PG Bug reporting form <noreply@postgresql.org>)
Ответы AW: BUG #15923: Prepared statements take way too much memory.  (Daniel Migowski <dmigowski@ikoffice.de>)
Список pgsql-bugs
PG Bug reporting form <noreply@postgresql.org> writes:
> Prepared Statements take too much memory.

I'm not really sure what you expect us to do about this.  If you
PREPARE a bunch of statements and never DEALLOCATE them, then yes
they're going to consume memory; maybe a lot of memory if the
plans are complex.

The only thing we could do to reduce the memory consumption is to
throw away the plans, which kind of defeats the purpose of a
prepared statement, wouldn't you say?  And even holding onto enough
information to re-create the plan later would consume some amount
of memory, so you will still have a problem if you keep making
prepared statements and never release them.

            regards, tom lane



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

Предыдущее
От: PG Bug reporting form
Дата:
Сообщение: BUG #15923: Prepared statements take way too much memory.
Следующее
От: Daniel Migowski
Дата:
Сообщение: AW: BUG #15923: Prepared statements take way too much memory.